class ADAL::ClientAssertion
A client credential that consists of the client id and a JWT bearer assertion. The type is 'urn:ietf:params:oauth:token-type:jwt'.
Attributes
assertion[R]
assertion_type[R]
client_id[R]
Public Class Methods
new(client_id, assertion, assertion_type = JWT_BEARER)
click to toggle source
Creates a new ClientAssertion
.
@param [String] client_id
The client id of the calling application.
@param [String] assertion
The JWT used as a credential.
# File lib/adal/client_assertion.rb, line 46 def initialize(client_id, assertion, assertion_type = JWT_BEARER) fail_if_arguments_nil(client_id, assertion, assertion_type) @assertion = assertion @assertion_type = assertion_type @client_id = client_id end
Public Instance Methods
request_params()
click to toggle source
The relavent parameters from this credential for OAuth.
@return Hash
# File lib/adal/client_assertion.rb, line 57 def request_params { CLIENT_ID => @client_id, CLIENT_ASSERTION_TYPE => @assertion_type, CLIENT_ASSERTION => @assertion } end