@Singleton
public class DefaultRedirectUrlProvider
extends java.lang.Object
AuthorizationCodeController
.Constructor and Description |
---|
DefaultRedirectUrlProvider(io.micronaut.runtime.server.EmbeddedServer embeddedServer,
java.lang.String authorizationCodeControllerPath,
java.lang.String authorizationCodeControllerActionPath) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRedirectUri() |
java.lang.String |
getServerUrl(io.micronaut.runtime.server.EmbeddedServer embeddedServer) |
public DefaultRedirectUrlProvider(io.micronaut.runtime.server.EmbeddedServer embeddedServer, @Value(value="${micronaut.security.endpoints.authcode.controller-path:/authcode}") java.lang.String authorizationCodeControllerPath, @Value(value="${micronaut.security.endpoints.authcode.action-path:/cb}") java.lang.String authorizationCodeControllerActionPath)
embeddedServer
- The embedded serverauthorizationCodeControllerPath
- The root path of AuthorizationCodeController
.authorizationCodeControllerActionPath
- The path to the actions of AuthorizationCodeController
.public java.lang.String getServerUrl(io.micronaut.runtime.server.EmbeddedServer embeddedServer)
embeddedServer
- The embedded serverpublic java.lang.String getRedirectUri()
AuthorizationCodeController
.