Class: OpenidBackchannelLogout::TokenValidator
- Inherits:
-
Object
- Object
- OpenidBackchannelLogout::TokenValidator
- Defined in:
- lib/openid_backchannel_logout/token_validator.rb
Constant Summary collapse
- EVENT_KEY =
'http://schemas.openid.net/event/backchannel-logout'
Instance Attribute Summary collapse
-
#decoded_token ⇒ Object
readonly
Returns the value of attribute decoded_token.
Instance Method Summary collapse
-
#initialize(jwt_token, jwks_uri, expected_issuer, expected_audience, options = {}) ⇒ TokenValidator
constructor
A new instance of TokenValidator.
- #valid! ⇒ Object
Constructor Details
#initialize(jwt_token, jwks_uri, expected_issuer, expected_audience, options = {}) ⇒ TokenValidator
Returns a new instance of TokenValidator.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/openid_backchannel_logout/token_validator.rb', line 13 def initialize(jwt_token, jwks_uri, expected_issuer, expected_audience, = {}) @jwt_token = jwt_token @jwks_uri = jwks_uri @expected_issuer = expected_issuer @expected_audience = expected_audience # TODO: Implement validation for claims that are not required by the spec # https://openid.net/specs/openid-connect-backchannel-1_0.html @options = end |
Instance Attribute Details
#decoded_token ⇒ Object (readonly)
Returns the value of attribute decoded_token.
9 10 11 |
# File 'lib/openid_backchannel_logout/token_validator.rb', line 9 def decoded_token @decoded_token end |
Instance Method Details
#valid! ⇒ Object
24 25 26 27 |
# File 'lib/openid_backchannel_logout/token_validator.rb', line 24 def valid! decode_and_validate_token validate_claims end |