Class AuthDemoController
java.lang.Object
org.chenile.security.auth.server.web.AuthDemoController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AuthServerPropertiesprivate final TenantRegistryprivate final TokenService -
Constructor Summary
ConstructorsConstructorDescriptionAuthDemoController(TenantRegistry tenantRegistry, TokenService tokenService, AuthServerProperties properties) -
Method Summary
Modifier and TypeMethodDescriptiondecodeClaims(String token) demoContext(String scenario, String providerId) withServiceAccess(AuthServerProperties.ServiceDefinition service, List<String> scopes)
-
Field Details
-
tenantRegistry
-
tokenService
-
properties
-
-
Constructor Details
-
AuthDemoController
public AuthDemoController(TenantRegistry tenantRegistry, TokenService tokenService, AuthServerProperties properties)
-
-
Method Details
-
scenarios
-
demoContext
@GetMapping("/context") Map<String,Object> demoContext(@RequestParam(required=false) String scenario, @RequestParam(required=false) String providerId) -
toScenarioPayload
-
toProviderPayload
-
toProviderPayload
-
decodeClaims
-
withServiceAccess
-
CHENILE