fastapi-jwt-auth icon indicating copy to clipboard operation
fastapi-jwt-auth copied to clipboard

Added options to configure token type claim.

Open s3rius opened this issue 3 years ago • 3 comments

Hi, you did a super cool library, but I couldn't use it in our ecosystem.

These options are here to help this library to be more generic. In many cases services built with FastAPI are used as micro services that integrated in existing systems with existing authentication mechanisms. I faced an issue that JWTs that used in our backend have custom type claims, so I added these options to be able to adjust this library nicely.

Signed-off-by: Pavel Kirilin [email protected]

s3rius avatar May 03 '22 09:05 s3rius

@IndominusByte, while writing tests for this request I found out that some of your tests depend on configuration loaded by previous tests. I've added fixture that resets config to default state after every test. Is this ok?

s3rius avatar May 03 '22 10:05 s3rius

Is it possible to merge this PR?

leonardovettulo avatar May 30 '22 19:05 leonardovettulo

@leonardovettulo, I've tried to contact the maintainer, but I couldn't find his contacts.

If someone knows how to reach him and tell to look at this PR, it would be super great.

s3rius avatar May 31 '22 13:05 s3rius