Class: Cloudmunda::API::AccessToken
- Inherits:
-
OAuthResource
- Object
- OpenStruct
- OAuthResource
- Cloudmunda::API::AccessToken
- Defined in:
- lib/cloudmunda/api/access_token.rb
Class Method Summary collapse
Methods inherited from OAuthResource
Class Method Details
.create(audience_url: Cloudmunda.audience) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cloudmunda/api/access_token.rb', line 6 def self.create(audience_url: Cloudmunda.audience) uri = Cloudmunda.auth_url payload = { grant_type: 'client_credentials', audience: audience_url, client_id: Cloudmunda.client_id, client_secret: Cloudmunda.client_secret } create_by_uri(uri: uri, payload: payload) end |