Module: Keycloak
- Defined in:
- lib/libkeycloak.rb
Defined Under Namespace
Classes: Client, Error, JWTDecodeResult, JWTValidationResult
Constant Summary collapse
- Tokens =
Keycloak_FFI::KeycloakTokens
- Token =
Keycloak_FFI::KeycloakToken
- UserInfo =
Keycloak_FFI::KeycloakUserinfo
Class Method Summary collapse
Class Method Details
._jwt_claim_value(claim) ⇒ Object
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 |
# File 'lib/libkeycloak.rb', line 568 def self._jwt_claim_value claim case claim[:type] when :String return claim[:value][:stringvalue] when :Int return claim[:value][:intvalue] when :Double return claim[:value][:doublevalue] when :Bool return claim[:value][:boolvalue] when :Null return nil # TODO when :Array return claim[:value][:datavalue] when :Object return claim[:value][:datavalue] when :Other return claim[:value][:datavalue] end end |