github sso verify code

This block is part of the users group and was last modified in core v14.0.4.

github sso verify code v14.0.4

Exchange a GitHub authorization code for user identity. Returns email, name, and a service token for "user exists by service".

In pins 4 + flow
  • flow
    flow
  • Client ID required
    value

    GitHub OAuth App Client ID

  • Client Secret required
    value

    GitHub OAuth App Client Secret

  • Code required
    value

    The authorization code returned by GitHub

  • Redirect URI required
    value

    Must be the same redirect URI used when generating the auth URL

Out pins 11 + flow
  • flow
    flow
  • Email
    value

    The user email address from the SSO provider

  • Name
    value

    The user display name

  • First name
    value

    The user first name

  • Last name
    value

    The user last name

  • Service Token
    value

    Service token in format "{provider}-{id}" for use with "user exists by service" block

  • Provider User ID
    value

    The unique user ID at the SSO provider

  • Access Token
    value

    The OAuth access token for making API calls on behalf of the user

  • Refresh Token
    value

    Empty for GitHub; GitHub does not issue refresh tokens in this flow

  • Raw Token
    object

    The GitHub user profile JSON returned from the GitHub user API

  • Success
    condition

    True if the code was exchanged successfully

  • Error
    value

    Error message if success is false

sso
oauth
github
single sign on
verify
exchange
callback

A typical wiring for github sso verify code: a function trigger starts the flow; value feeds the client_id pin; value feeds the client_secret pin; value feeds the code pin; value feeds the redirect_uri pin; the flow out pin feeds debug.

Studio canvas example for the github sso verify code block: typical wiring for github sso verify code.

Version history

Introduced in v14.0.4.

Service documentation

External API reference This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.
Back to users Return to the main group to view all sub-groups Back to sso Return to the group to view all blocks within this group