GetOIDCAccessToken (NotesSession - LotusScript)
It is used to acquire an access token from a Domino OIDC Provider for the current user as identified and authenticated by their ID file.
Defined in
Syntax
token$ = session.GetOIDCAccessToken(server$, clientid$, issuer$, resource$, scope$)
Parameters
server$
String. Name of Domino Server to contact.
Clientid$
String. The client ID for your OAuth application.
issuer$
String. Your issuer (Domino OIDC provider if empty string).
resource$
String. Requested resource (First configured audience for client if empty string)
scope$
String. Requested scopes (Configured scopes for client if empty string)
Return value
token$
String. The access token.
Example
On Error GoTo processError
Dim Session As New NotesSession
Dim server, clientid, issuer, resource, scope As String
MessageBox("User Name: " & session.UserName)
server = "domino.example.com"
clientid = "test_client"
issuer = "https://provider.example.com/auth/protocol/oidc"
resource = ""
scopes = ""
token = session.getOIDCAccessToken(server, clientid, issuer, resource, scopes);
MessageBox("OIDC Token: " & token)
Exit Sub
processError:
Dim errMess As String
errMess = "Error " & Err & ": " & Error$
MessageBox(errMess)
Exit Sub