sso-mib 0.6.0
Library to interact with the Microsoft Device Broker for SSO
Loading...
Searching...
No Matches
Typedefs | Enumerations | Functions
PoP Parameters

Proof-of-Possession Parameters. More...

Typedefs

typedef void * MIBPopParams
 

Enumerations

enum  MIB_AUTH_SCHEME { MIB_AUTH_SCHEME_BEARER , MIB_AUTH_SCHEME_POP }
 Authentication schemes. More...
 
enum  MIB_REQUEST_METHOD { MIB_REQUEST_METHOD_GET , MIB_REQUEST_METHOD_POST , MIB_REQUEST_METHOD_PUT }
 Request methods. More...
 

Functions

MIBPopParamsmib_pop_params_new (enum MIB_AUTH_SCHEME auth_scheme, enum MIB_REQUEST_METHOD method, const gchar *uri)
 Create new Proof-of-Possession parameters object.
 
void mib_pop_params_set_shr_claims (MIBPopParams *self, const gchar *claims)
 
void mib_pop_params_set_shr_nonce (MIBPopParams *self, const gchar *nonce)
 
void mib_pop_params_set_kid (MIBPopParams *self, const gchar *kid)
 Set the decoded "kid" part from a "req_cnf".
 

Detailed Description

Proof-of-Possession Parameters.

Typedef Documentation

◆ MIBPopParams

typedef void* MIBPopParams

Enumeration Type Documentation

◆ MIB_AUTH_SCHEME

Authentication schemes.

Enumerator
MIB_AUTH_SCHEME_BEARER 
MIB_AUTH_SCHEME_POP 

◆ MIB_REQUEST_METHOD

Request methods.

Enumerator
MIB_REQUEST_METHOD_GET 
MIB_REQUEST_METHOD_POST 
MIB_REQUEST_METHOD_PUT 

Function Documentation

◆ mib_pop_params_new()

MIBPopParams * mib_pop_params_new ( enum MIB_AUTH_SCHEME  auth_scheme,
enum MIB_REQUEST_METHOD  method,
const gchar *  uri 
)

Create new Proof-of-Possession parameters object.

The caller is responsible for freeing the returned object with g_object_unref .

Parameters
auth_schemeIndicates whether a bearer or pop token is requested
methodThe HTTP method of the request that will use the signed token
uriThe URL of the protected resource for which the access token is being issued
Returns
The PoP parameters object

◆ mib_pop_params_set_kid()

void mib_pop_params_set_kid ( MIBPopParams self,
const gchar *  kid 
)

Set the decoded "kid" part from a "req_cnf".

A RFC9201 req_cnf is an OAuth2 parameter allowing clients to request a specific PoP key in an access token from a token endpoint. This value is a base64 encoded string with key kid and a value. This value needs to be provided here.

◆ mib_pop_params_set_shr_claims()

void mib_pop_params_set_shr_claims ( MIBPopParams self,
const gchar *  claims 
)

◆ mib_pop_params_set_shr_nonce()

void mib_pop_params_set_shr_nonce ( MIBPopParams self,
const gchar *  nonce 
)