public final class OidcSupport extends Object implements Service
| key | default value | description |
|---|---|---|
| redirect-uri | /oidc/redirect | Context root under which redirection endpoint is located (sent here by OIDC server |
| oidc-metadata-type | WELL_KNOWN | How to obtain OIDC metadata. Can be WELL_KNOWN, URI, PATH or NONE |
| oidc-metadata-uri | N/A | URI of the metadata if type set to URI |
| oidc-metadata-path | N/A | Path on the filesystem if type set to PATH |
| token-endpoint-type | WELL_KNOWN | Where is the token endpoint? WELL_KNOWN reads the location from OIDC Metadata |
| token-endpoint-uri | N/A | URI of the token endpoint if type set to URI |
| cookie-use | true | Whether to use cookie to provide the token to subsequent requests |
| cookie-name | OIDCTOKEN | Name of the cookie to set (and expect) |
| query-param-use | false | Whether to use query parameter to add to the request when redirecting to original URI |
| query-param-name | accessToken | Name of the query parameter to set (and expect) |
| Modifier and Type | Method and Description |
|---|---|
static OidcSupport |
create(Config config)
Load OIDC support for webserver from config.
|
static OidcSupport |
create(Config config,
String providerName)
Load OIDC support for webserver from config.
|
static OidcSupport |
create(OidcConfig oidcConfig)
Load OIDC support for webserver from
OidcConfig instance. |
void |
update(Routing.Rules rules)
Updates
Routing.Rules with handlers representing this service. |
public static OidcSupport create(Config config, String providerName)
config - Config instance on expected nodeproviderName - name of the node that contains OIDC configurationpublic void update(Routing.Rules rules)
ServiceRouting.Rules with handlers representing this service.public static OidcSupport create(Config config)
config - Config instance on expected nodepublic static OidcSupport create(OidcConfig oidcConfig)
OidcConfig instance.
When programmatically configuring your environment, this is the best approach, to share configuration
between this class and OidcProvider.oidcConfig - configuration of OIDC integrationCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.