Method: OSDNClient::Configuration#auth_settings
- Defined in:
- lib/osdn-client/configuration.rb
#auth_settings ⇒ Object
Returns Auth Settings hash for api client.
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
# File 'lib/osdn-client/configuration.rb', line 202 def auth_settings { 'oauth2-code' => { type: 'oauth2', in: 'header', key: 'Authorization', value: "Bearer #{access_token}" }, 'oauth2-implicit' => { type: 'oauth2', in: 'header', key: 'Authorization', value: "Bearer #{access_token}" }, } end |