UniWebViewAuthenticationUtils
Summary
This class provides some helper utils for performing the authentication flow.
They are used inside the built-in flows, but you can also use them to implement your own flow.
Methods Summary
Generates a random Base64 encoded string. | |
Generates a random Base64URL encoded string. | |
Converts a Base64 encoded string to a Base64URL encoded string. | |
Converts a Base64URL encoded string to a Base64 encoded string. | |
Generates a code verifier for PKCE usage. | |
Calculates the code challenge for PKCE usage, with a given code verifier and hash method. |
Methods
Generates a random Base64 encoded string.
A random Base64 encoded string.
Generates a random Base64URL encoded string.
A random Base64URL encoded string.
Converts a Base64 encoded string to a Base64URL encoded string.
- string input
The Base64 encoded string.
A string with Base64URL encoded for the input.
Converts a Base64URL encoded string to a Base64 encoded string.
- string input
The Base64URL encoded string.
A string with Base64 encoded for the input.
Generates a code verifier for PKCE usage.
- int length
The length of the target code verifier. Default is 64.
A generated code verifier for PKCE usage.
Calculates the code challenge for PKCE usage, with a given code verifier and hash method.
- string codeVerifier
The code verifier you generated.
- UniWebViewAuthenticationPKCE method
The hash method you want to use.
The result of the code challenge.