Skip to content

Difficulties understanding custom authorizer example #507

Answered by bretambrose
abarke asked this question in Q&A
Discussion options

You must be logged in to vote

I'll try to walk through a basic example and hopefully that will make things clearer (square brackets denotes substitution).

You want to make a signed custom authorizer.

Start with a key pair: (PubKey, PrivKey)

Create a signing custom authorizer. Ignoring Lambda configuration, a signed custom authorizer is configured with the public key and the token-key-name value. token-key-name is the name of the query parameter that you (well, the SDK) will stick the unsigned token value in . In other words, the custom authorizer service expects the query param pair [token-key-name]=[unsigned-token-value] to appear in the username field of the CONNECT packet whenever you try to connect

[My-Authorizer-…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@abarke
Comment options

Comment options

You must be logged in to vote
3 replies
@abarke
Comment options

@bretambrose
Comment options

@abarke
Comment options

Answer selected by abarke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants