OAuth2Proxy
Object Hierarchy:
Description:
[ CCode ( lower_case_cprefix = "oauth2_proxy_" , type_id = "rest_oauth2_proxy_get_type ()" ) ]
public class OAuth2Proxy : Proxy
public class OAuth2Proxy : Proxy
Namespace: Rest
Package: rest-1.0
Content:
Properties:
- public string access_token { owned get; set; }
- public string auth_url { owned get; set; }
- public string client_id { owned get; set; }
- public string client_secret { owned get; set; }
- public DateTime expiration_date { owned get; set; }
- public string redirect_uri { owned get; set; }
- public string refresh_token { owned get; set; }
- public string token_url { owned get; set; }
Creation methods:
- public OAuth2Proxy (string authurl, string tokenurl, string redirecturl, string client_id, string client_secret, string baseurl)
Create a new OAuth2Proxy.
Methods:
- public string build_authorization_url (string code_challenge, string? scope, out string state)
- public async bool fetch_access_token_async (string authorization_code, string code_verifier, Cancellable? cancellable) throws Error
- public unowned string get_access_token ()
- public unowned string get_auth_url ()
- public unowned string get_client_id ()
- public unowned string get_client_secret ()
- public DateTime get_expiration_date ()
- public unowned string get_redirect_uri ()
- public unowned string get_refresh_token ()
- public unowned string get_token_url ()
- public virtual void parse_access_token (Bytes payload, Task task)
- public bool refresh_access_token () throws Error
- public async bool refresh_access_token_async (Cancellable? cancellable) throws Error
- public void set_access_token (string access_token)
- public void set_auth_url (string tokenurl)
- public void set_client_id (string client_id)
- public void set_client_secret (string client_secret)
- public void set_expiration_date (DateTime expiration_date)
- public void set_redirect_uri (string redirect_uri)
- public void set_refresh_token (string refresh_token)
- public void set_token_url (string tokenurl)
Inherited Members:
All known members inherited from class Rest.Proxy
All known members inherited from class GLib.Object