Class: Ksef::Auth::Initiation
- Inherits:
-
Data
- Object
- Data
- Ksef::Auth::Initiation
- Defined in:
- lib/ksef/auth/initiation.rb
Overview
The 202 Accepted from POST /auth/xades-signature — the contract's
AuthenticationInitResponse.
The token here is the short-lived authentication token, not an access token. It authorises exactly two follow-up calls: checking the operation's status, and redeeming it for the real pair. Confusing the two is the obvious mistake in this flow (docs/REFERENCE.md §4.2).
Instance Attribute Summary collapse
-
#authentication_token ⇒ Object
readonly
Returns the value of attribute authentication_token.
-
#reference_number ⇒ Object
readonly
Returns the value of attribute reference_number.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#authentication_token ⇒ Object (readonly)
Returns the value of attribute authentication_token
11 12 13 |
# File 'lib/ksef/auth/initiation.rb', line 11 def authentication_token @authentication_token end |
#reference_number ⇒ Object (readonly)
Returns the value of attribute reference_number
11 12 13 |
# File 'lib/ksef/auth/initiation.rb', line 11 def reference_number @reference_number end |
Class Method Details
Instance Method Details
#token ⇒ Object
19 |
# File 'lib/ksef/auth/initiation.rb', line 19 def token = authentication_token&.token |