Class ThirdPartyAuthorizationCode

java.lang.Object
org.yamcs.security.ThirdPartyAuthorizationCode
All Implemented Interfaces:
AuthenticationToken

public class ThirdPartyAuthorizationCode extends Object implements AuthenticationToken
Represents a token (or 'authorization_code' in oauth terms) issued by an external identity server. This is used in situations where Yamcs does not itself perform the authentication.

The type of code is an implementation choice of the AuthModule. It may directly represent an externally issued token, although ideally the AuthModule should not expose such information, and instead manage an internal mapping via self-issued transient tokens.

See SpnegoAuthModule for a representative example

  • Constructor Details

    • ThirdPartyAuthorizationCode

      public ThirdPartyAuthorizationCode(String code)
  • Method Details

    • getPrincipal

      public String getPrincipal()