Skip to content

How to get an access token in Cypress environment ? #2256

Answered by k9ert
lbdremy asked this question in Q&A
Discussion options

You must be logged in to vote

So from my past experience independent of Ory and in combination with my last experience with cypress-testing, i'd suggest to implement different authentication-schemes in your application. If hydra is currently your only one then maybe "None" might be a valuable other one. I think this is useful for development (increasing efficiency of developers) but also testing, especially if you explicitely don't want to test all your'third-party depenendencies.

Just a couple of years ago, security people might consider that as some sort of "unsecure" but seriously: How many configuration-params are different on prod than on other environments? If one can't control that on prod, one should probably …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@aeneasr
Comment options

@lbdremy
Comment options

@k9ert
Comment options

@vinckr
Comment options

@lbdremy
Comment options

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