1
0
Fork 0
toolkit/packages/oidc-client
Sourav Chanduka f7330892f1 oidc client changes 2021-07-20 08:58:34 +05:30
..
__tests__ oidc client changes 2021-07-20 08:58:34 +05:30
dist oidc client changes 2021-07-20 08:58:34 +05:30
src oidc client changes 2021-07-20 08:58:34 +05:30
LICENSE.md Inital draft of OIDC Client 2021-07-01 08:11:28 +05:30
README.md Inital draft of OIDC Client 2021-07-01 08:11:28 +05:30
package-lock.json oidc client changes 2021-07-20 08:58:34 +05:30
package.json oidc client changes 2021-07-20 08:58:34 +05:30
tsconfig.json Inital draft of OIDC Client 2021-07-01 08:11:28 +05:30

README.md

@actions/oidc-client

Usage

You can use this package to interact with the github oidc provider.

Get the ID token

Method Name: getIDToken

Inputs

Client id The client id registered with oidc provider Required Client secret The client secret Required

These inputs are temporary. They will be modified once the complete package is available.

Example:

const core = require('@actions/core');
const id = require('@actions/oidc-client')


async function getID(){
   const id_token = await id.getIDToken('client-id', 'client-secret')
   const val = `ID token is ${id_token}`
   core.setOutput('id_token', id_token);
      
}

getID()