public class DeviceEndpoint extends AuthorizationEndpointBase implements RealmResourceProvider
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
logger |
APP_INITIATED_FLOW, authManager, clientConnection, event, headers, httpRequest, realm, session
Constructor and Description |
---|
DeviceEndpoint(RealmModel realm,
EventBuilder event) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected AuthenticationSessionModel |
createAuthenticationSession(ClientModel client) |
Object |
getResource()
Returns a JAX-RS resource instance.
|
javax.ws.rs.core.Response |
handleDeviceRequest()
Handles device authorization requests.
|
javax.ws.rs.core.Response |
status(String error)
Showing the result of verification process for OAuth 2.0 Device Authorization Grant.
|
javax.ws.rs.core.Response |
verifyUserCode()
Verifies the code provided by the end-user and start the authentication.
|
javax.ws.rs.core.Response |
verifyUserCode(String userCode)
This endpoint is used by end-users to start the flow to authorize a device.
|
checkRealm, checkSsl, createAuthenticationSession, createProcessor, getAuthenticationFlow, handleBrowserAuthenticationRequest
public DeviceEndpoint(RealmModel realm, EventBuilder event)
@Path(value="") @POST @Consumes(value="application/x-www-form-urlencoded") @Produces(value="application/json") public javax.ws.rs.core.Response handleDeviceRequest()
@GET public javax.ws.rs.core.Response verifyUserCode(@QueryParam(value="user_code") String userCode)
userCode
- the user code to authorize@Path(value="/") @POST @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response verifyUserCode()
@Path(value="status") @GET public javax.ws.rs.core.Response status(@QueryParam(value="error") String error)
error
- public Object getResource()
RealmResourceProvider
Returns a JAX-RS resource instance.
getResource
in interface RealmResourceProvider
protected AuthenticationSessionModel createAuthenticationSession(ClientModel client)
Copyright © 2021 JBoss by Red Hat. All rights reserved.