OAuthRequest

public final class OAuthRequest


The OAuth request to be sent to the server to start the OAuth 2 authentication flow.

Summary

Nested types

OAuthRequest.Builder

Builder for constructing new instance of OAuth request.

OAuthRequest.Companion

Public fields

final @NonNull String

The package name of the app sending the auth request.

final @NonNull Uri

The Url of the auth request.

Public fields

packageName

@NonNull
public final @NonNull String packageName

The package name of the app sending the auth request.

requestUrl

@NonNull
public final @NonNull Uri requestUrl

The Url of the auth request.

The request is expected to create a URL with the following format:

    https://authorization-server.com/auth?client_id=XXXXX
&redirect_uri=https://wear.googleapis.com/3p_auth/mypackagename
&response_type=code
&code_challenge=XXXXX...XXX
&code_challenge_method=S256