Rest.PkceCodeChallenge

Fields

None

Methods

class

new_random ()

copy ()

free ()

get_challenge ()

get_verifier ()

Details

class Rest.PkceCodeChallenge

In order to play a Pkce Code Verification during a OAuth2 authorization you need this structure which handles the algorithmic part.

classmethod new_random()
Returns:

A newly created Rest.PkceCodeChallenge

Return type:

Rest.PkceCodeChallenge

Creates a new Rest.PkceCodeChallenge.

copy()
Returns:

A newly created Rest.PkceCodeChallenge with the same contents as self

Return type:

Rest.PkceCodeChallenge

Makes a deep copy of a Rest.PkceCodeChallenge.

free()

Frees a Rest.PkceCodeChallenge allocated using rest_pkce_code_challenge_new() or Rest.PkceCodeChallenge.copy().

get_challenge()
Returns:

the code_challenge

Return type:

str

Returns the Code Challenge for the Pkce verification.

get_verifier()
Returns:

the code_verifier

Return type:

str

Returns the Code Verifier for the Pkce verification.