| Modifier and Type | Fields and Description |
|---|---|
static String |
OAUTH2_MP_AUTH_ENDPOINT
The Microprofile Config key for the auth endpoint is
"payara.security.oauth2.authEndpoint" |
static String |
OAUTH2_MP_CLIENT_ID
The Microprofile Config key for the clientId is
"payara.security.oauth2.clientId" |
static String |
OAUTH2_MP_CLIENT_SECRET
The Microprofile Config key for the client secret is
"payara.security.oauth2.clientSecret" |
static String |
OAUTH2_MP_REDIRECT_URI
The Microprofile Config key for the redirect URI is
"payara.security.oauth2.redirectURI" |
static String |
OAUTH2_MP_SCOPE
The Microprofile Config key for the scope is
"payara.security.oauth2.scope" |
static String |
OAUTH2_MP_TOKEN_ENDPOINT
The Microprofile Config key for the token Endpoint is
"payara.security.oauth2.tokenEndpoint" |
| Modifier and Type | Required Element and Description |
|---|---|
String |
authEndpoint
Required.
|
String |
clientId
Required.
|
String |
clientSecret
Required.
|
String |
tokenEndpoint
Required.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
extraParameters
An array of extra options that will be sent to the OAuth provider.
|
String |
redirectURI
The callback URI.
|
String |
scope
The scope that will be requested from the OAuth provider
|
public static final String OAUTH2_MP_AUTH_ENDPOINT
"payara.security.oauth2.authEndpoint"public static final String OAUTH2_MP_TOKEN_ENDPOINT
"payara.security.oauth2.tokenEndpoint"public static final String OAUTH2_MP_CLIENT_ID
"payara.security.oauth2.clientId"public static final String OAUTH2_MP_CLIENT_SECRET
"payara.security.oauth2.clientSecret"public static final String OAUTH2_MP_REDIRECT_URI
"payara.security.oauth2.redirectURI"public static final String OAUTH2_MP_SCOPE
"payara.security.oauth2.scope"public abstract String authEndpoint
This must be a https endpoint.
To set this using Microprofile Config usepayara.security.oauth2.authEndpoint.public abstract String tokenEndpoint
To set this using Microprofile Config use payara.security.oauth2.tokenEndpoint
public abstract String clientId
To set this using Microprofile Config use payara.security.oauth2.cliendId
public abstract String clientSecret
It is recommended to set this using an alias.
To set this using Microprofile Config usepayara.security.oauth2.clientSecretpublic abstract String redirectURI
If supplied this must be equal to one set in the OAuth2 Authentication provider.
To set this using Microprofile Config use payara.security.oauth2.redirectURI
public abstract String scope
public abstract String[] extraParameters
These must be in the form of "key=value" i.e.
extraParameters={"key1=value", "key2=value2"}
Copyright © 2019. All rights reserved.