Package sh.ory.hydra.model
Class LoginRequest
- java.lang.Object
-
- sh.ory.hydra.model.LoginRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-01-12T16:13:57.119092Z[GMT]") public class LoginRequest extends Object
LoginRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CHALLENGEstatic StringSERIALIZED_NAME_CLIENTstatic StringSERIALIZED_NAME_OIDC_CONTEXTstatic StringSERIALIZED_NAME_REQUEST_URLstatic StringSERIALIZED_NAME_REQUESTED_ACCESS_TOKEN_AUDIENCEstatic StringSERIALIZED_NAME_REQUESTED_SCOPEstatic StringSERIALIZED_NAME_SESSION_IDstatic StringSERIALIZED_NAME_SKIPstatic StringSERIALIZED_NAME_SUBJECT
-
Constructor Summary
Constructors Constructor Description LoginRequest()
-
Method Summary
Modifier and Type Method Description LoginRequestaddRequestedAccessTokenAudienceItem(String requestedAccessTokenAudienceItem)LoginRequestaddRequestedScopeItem(String requestedScopeItem)LoginRequestchallenge(String challenge)LoginRequestclient(OAuth2Client client)booleanequals(Object o)StringgetChallenge()ID is the identifier (\"login challenge\") of the login request.OAuth2ClientgetClient()Get clientOpenIDConnectContextgetOidcContext()Get oidcContextList<String>getRequestedAccessTokenAudience()Get requestedAccessTokenAudienceList<String>getRequestedScope()Get requestedScopeStringgetRequestUrl()RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client.StringgetSessionId()SessionID is the login session ID.BooleangetSkip()Skip, if true, implies that the client has requested the same scopes from the same user previously.StringgetSubject()Subject is the user ID of the end-user that authenticated.inthashCode()LoginRequestoidcContext(OpenIDConnectContext oidcContext)LoginRequestrequestedAccessTokenAudience(List<String> requestedAccessTokenAudience)LoginRequestrequestedScope(List<String> requestedScope)LoginRequestrequestUrl(String requestUrl)LoginRequestsessionId(String sessionId)voidsetChallenge(String challenge)voidsetClient(OAuth2Client client)voidsetOidcContext(OpenIDConnectContext oidcContext)voidsetRequestedAccessTokenAudience(List<String> requestedAccessTokenAudience)voidsetRequestedScope(List<String> requestedScope)voidsetRequestUrl(String requestUrl)voidsetSessionId(String sessionId)voidsetSkip(Boolean skip)voidsetSubject(String subject)LoginRequestskip(Boolean skip)LoginRequestsubject(String subject)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_CHALLENGE
public static final String SERIALIZED_NAME_CHALLENGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CLIENT
public static final String SERIALIZED_NAME_CLIENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OIDC_CONTEXT
public static final String SERIALIZED_NAME_OIDC_CONTEXT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUEST_URL
public static final String SERIALIZED_NAME_REQUEST_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUESTED_ACCESS_TOKEN_AUDIENCE
public static final String SERIALIZED_NAME_REQUESTED_ACCESS_TOKEN_AUDIENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUESTED_SCOPE
public static final String SERIALIZED_NAME_REQUESTED_SCOPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SESSION_ID
public static final String SERIALIZED_NAME_SESSION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SKIP
public static final String SERIALIZED_NAME_SKIP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBJECT
public static final String SERIALIZED_NAME_SUBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
challenge
public LoginRequest challenge(String challenge)
-
getChallenge
public String getChallenge()
ID is the identifier (\"login challenge\") of the login request. It is used to identify the session.- Returns:
- challenge
-
setChallenge
public void setChallenge(String challenge)
-
client
public LoginRequest client(OAuth2Client client)
-
getClient
public OAuth2Client getClient()
Get client- Returns:
- client
-
setClient
public void setClient(OAuth2Client client)
-
oidcContext
public LoginRequest oidcContext(OpenIDConnectContext oidcContext)
-
getOidcContext
@Nullable public OpenIDConnectContext getOidcContext()
Get oidcContext- Returns:
- oidcContext
-
setOidcContext
public void setOidcContext(OpenIDConnectContext oidcContext)
-
requestUrl
public LoginRequest requestUrl(String requestUrl)
-
getRequestUrl
public String getRequestUrl()
RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters.- Returns:
- requestUrl
-
setRequestUrl
public void setRequestUrl(String requestUrl)
-
requestedAccessTokenAudience
public LoginRequest requestedAccessTokenAudience(List<String> requestedAccessTokenAudience)
-
addRequestedAccessTokenAudienceItem
public LoginRequest addRequestedAccessTokenAudienceItem(String requestedAccessTokenAudienceItem)
-
getRequestedAccessTokenAudience
public List<String> getRequestedAccessTokenAudience()
Get requestedAccessTokenAudience- Returns:
- requestedAccessTokenAudience
-
setRequestedAccessTokenAudience
public void setRequestedAccessTokenAudience(List<String> requestedAccessTokenAudience)
-
requestedScope
public LoginRequest requestedScope(List<String> requestedScope)
-
addRequestedScopeItem
public LoginRequest addRequestedScopeItem(String requestedScopeItem)
-
getRequestedScope
public List<String> getRequestedScope()
Get requestedScope- Returns:
- requestedScope
-
sessionId
public LoginRequest sessionId(String sessionId)
-
getSessionId
@Nullable public String getSessionId()
SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user.- Returns:
- sessionId
-
setSessionId
public void setSessionId(String sessionId)
-
skip
public LoginRequest skip(Boolean skip)
-
getSkip
public Boolean getSkip()
Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information.- Returns:
- skip
-
setSkip
public void setSkip(Boolean skip)
-
subject
public LoginRequest subject(String subject)
-
getSubject
public String getSubject()
Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail.- Returns:
- subject
-
setSubject
public void setSubject(String subject)
-
-