static okhttp3.Response
static okhttp3.Response
Deletes a protected resource that requires additional Authorization headers to be added to the request.
Default method that returns a consistent session identifier across implementations
for an authorized session scoped to the social agent, application id, and openid provider.
AuthorizedSessionAccessor.get(URI socialAgentId,
URI applicationId,
URI oidcProviderId)
Get an
AuthorizedSession
matching the provided
socialAgentId
,
applicationId
,
oidcProviderId
BasicAuthorizedSessionAccessor.get(URI socialAgentId,
URI applicationId,
URI oidcProviderId)
static org.apache.jena.rdf.model.Resource
Get the client identifier document as a Jena Resource associated with the provided clientId
protected static com.nimbusds.oauth2.sdk.dpop.DPoPProofFactory
Gets a DPoP proof factory that can be used for generate DPoP proofs for requests
made by the session.
protected static com.nimbusds.jose.jwk.ECKey
static com.nimbusds.openid.connect.sdk.op.OIDCProviderMetadata
Get the configuration of an OpenID Provider based on the discovery and contents
of its .well-known/openid-configuration resource.
protected static com.nimbusds.jwt.SignedJWT
SolidOidcSession.getProof(com.nimbusds.oauth2.sdk.dpop.DPoPProofFactory proofFactory,
com.janeirodigital.sai.httputils.HttpMethod method,
URI uri)
Gets the required DPoP proof that must be created for each request based on the
method
and target uri
.
static okhttp3.Response
static okhttp3.Response
Gets a protected RDF resource that requires additional Authorization headers to be added to the request.
static okhttp3.Response
static okhttp3.Response
Gets a protected resource that requires additional Authorization headers to be added to the request.
ClientCredentialsSession.obtainToken(String clientIdentifier,
String clientSecret,
URI oidcTokenEndpoint,
com.nimbusds.oauth2.sdk.Scope scope)
POSTs a token request to the token endpoint of the oidcProvider using the provided
clientIdentifier
and clientSecret
to authenticate and request
the provided scope
.
protected static com.nimbusds.oauth2.sdk.token.Tokens
SolidOidcSession.obtainTokens(URI oidcTokenEndpoint,
com.nimbusds.oauth2.sdk.id.ClientID clientId,
com.nimbusds.oauth2.sdk.AuthorizationGrant grant,
com.nimbusds.oauth2.sdk.dpop.DPoPProofFactory proofFactory)
Post a token request to the token endpoint provided in oidcProviderMetadata
.
Process the response to the authorization code request.
static okhttp3.Response
AuthorizedSessionHelper.putProtectedRdfResource(AuthorizedSession authorizedSession,
okhttp3.OkHttpClient httpClient,
URI uri,
org.apache.jena.rdf.model.Resource resource,
com.janeirodigital.sai.httputils.ContentType contentType)
static okhttp3.Response
AuthorizedSessionHelper.putProtectedRdfResource(AuthorizedSession authorizedSession,
okhttp3.OkHttpClient httpClient,
URI uri,
org.apache.jena.rdf.model.Resource resource,
com.janeirodigital.sai.httputils.ContentType contentType,
String jsonLdContext)
static okhttp3.Response
AuthorizedSessionHelper.putProtectedRdfResource(AuthorizedSession authorizedSession,
okhttp3.OkHttpClient httpClient,
URI uri,
org.apache.jena.rdf.model.Resource resource,
com.janeirodigital.sai.httputils.ContentType contentType,
String jsonLdContext,
okhttp3.Headers headers)
Puts a protected RDF resource that requires additional Authorization headers to be added to the request.
static okhttp3.Response
AuthorizedSessionHelper.putProtectedRdfResource(AuthorizedSession authorizedSession,
okhttp3.OkHttpClient httpClient,
URI uri,
org.apache.jena.rdf.model.Resource resource,
com.janeirodigital.sai.httputils.ContentType contentType,
okhttp3.Headers headers)
void
Refreshes the
AuthorizedSession
and updates the in-memory session store with the new values
void
"Refreshes" the session via another client credentials token request.
void
Refreshes the tokens associated with the session.
Request tokens from the token endpoint of the openid connect provider
Request tokens from the token endpoint of the openid connect provider
Sets the client Application that will use the Solid-OIDC session.
Sets the client application identifier for the Solid-OIDC session, with the ability
to lookup the client document and extract additional criteria (redirect uris and scope) for
the session automatically (which can be disabled by setting manual
to false).
static okhttp3.Headers
Sets the appropriate HTTP Authorization headers based on the characteristics of the
AuthorizedSession
.
Sets the openid connect provider that the client is registered with.
Sets the Social Agent that the Solid-OIDC session will be established on behalf of.
void
AuthorizedSession.toHttpHeaders(com.janeirodigital.sai.httputils.HttpMethod method,
URI uri)
Generates a map of HTTP authorization headers that can be added to an HTTP request when
accessing protected resources.
SolidOidcSession.toHttpHeaders(com.janeirodigital.sai.httputils.HttpMethod method,
URI uri)
Generates a map of HTTP Authorization headers that can be use to make authorized requests
using the session.