Sha256: 491974bee1a29e74206f93582e6d3e97987ea6aefd6423359c404d252b148306
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
module BacklogKit class Client module Authorization def create_token(oauth_code) params = { client_id: client_id, client_secret: client_secret, grant_type: 'authorization_code', code: oauth_code } params.merge!(redirect_uri: redirect_uri) if redirect_uri request(:post, 'oauth2/token', params, true) end def update_token params = { client_id: client_id, client_secret: client_secret, grant_type: 'refresh_token', refresh_token: refresh_token } request(:post, 'oauth2/token', params, true) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
backlog_kit-0.12.1 | lib/backlog_kit/client/authorization.rb |
backlog_kit-0.12.0 | lib/backlog_kit/client/authorization.rb |