Skip to content

Is it possible to use this middleware with two different token issuers ?  #283

Open
@gipsh

Description

Hi, i have been using the library for my api succesfully, now i want also support tokens issued by another platform (azure AD).
So i need to check if the signature of the token is valid for my own issued tokens AND from the other platform.

Is there an easy way to support this?

i already tried using two middlewares to validate with no luck

	apiv1.Use(authMiddleware.MiddlewareFunc(), externalTokenValidator.MiddlewareFunc()) {

       .....

       }

What the best strategy here? create a new middleware and check azure signature there and then call gin-jwt middleware?

Sorry if the question is off-topic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions