10Duke Java Core
Loading...
Searching...
No Matches
tenduke.sdk.core.auth.OpenIdConfigurationClient Class Reference

Detailed Description

Basic implementation for requesting an authorization server's /.well-known/openid-configuration endpoint and parsing the response into a Java object.

Public Member Functions

OpenIdConfiguration requestOpenIdConfiguration () throws IOException
 Makes a HTTP request to load OpenID Provider Configuration from the URL provided by AuthConfig#idpOidcDiscoveryUrl().
 

Protected Member Functions

OpenIdConfiguration parseResponse (final Response response) throws IOException
 Parses a OkHttp response as JSON mapping to OpenIdConfiguration.
 

Member Function Documentation

◆ parseResponse()

OpenIdConfiguration tenduke.sdk.core.auth.OpenIdConfigurationClient.parseResponse ( final Response response) throws IOException
protected

Parses a OkHttp response as JSON mapping to OpenIdConfiguration.

Parameters
responseThe response object that is used to read the response code and body.
Returns
A new instance of OpenIdConfiguration.
Exceptions
IOExceptionFor IO errors during request / response handling.

◆ requestOpenIdConfiguration()

OpenIdConfiguration tenduke.sdk.core.auth.OpenIdConfigurationClient.requestOpenIdConfiguration ( ) throws IOException

Makes a HTTP request to load OpenID Provider Configuration from the URL provided by AuthConfig#idpOidcDiscoveryUrl().

Returns
OpenID Provider Configuration information as provided in the response.
Exceptions
IOExceptionFor IO errors during request / response handling.

The documentation for this class was generated from the following file: