Monday, 6 January 2020

Net Core with Angular: Store Swagger UI Tokens Permanently

Is there any method to hardcode tokens into Swagger UI permanently in Local computer or Dev Environment ?

We are testing Net Core Apis and also running them through Angular 8: developing, rebuilding, writing code, testing Swagger APIs over 100 times a day each. Looking for way, to store token below, so don't have to keep Reentering. Can be very cumbersome, consuming time, as minutes add up.

Maybe we can read a token from external file in developer desktop. Token stays so even after computer restarts, developers are not required to reenter tokens. Perhaps in appsettings.json or any file?

Or anyway to inject code with Net Core Visual Studio Environment, that does not expose token in Source control?

Answer should run all Swagger UI and APIs ran from Angular environment,

Only in QA and Production will require entry of token

enter image description here

Using Net Core 2.0 with C#,



from Net Core with Angular: Store Swagger UI Tokens Permanently

No comments:

Post a Comment