Skip to content
This repository was archived by the owner on Jan 26, 2025. It is now read-only.

validating jwt from client credentials flow #58

@rbro

Description

@rbro

I am looking to validate a JWT issued by Okta for the Client Credentials flow. Please let me know if this should be asked instead in the Okta dev forums.

I am building an API that many other systems will call for machine to machine communication. Each system hits the same URL in the API. From what I understand with the Client Credentials flow, each system will have a separate application in Okta, so each will have its own client id.

When using okta-jwt-verifier-php, it seems that I have to pass a client id using setClientId(). If I don't, I get back an error "ClientId does not match what is expected".

I could be misunderstanding how Client Credentials works, but in this scenario, each JWT will have a different client id since each system will have its own application. Is that correct, and if so, is there a way that I can validate JWT's where the client id could be one of many possible valid client ids? I will be validating the client id in my own code after the JWT is verified.

Or does the Client Credentials flow work differently?

Thank you for your help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions