Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

login?state=が固定されている #10

Open
eai04191 opened this issue Feb 14, 2020 · 0 comments
Open

login?state=が固定されている #10

eai04191 opened this issue Feb 14, 2020 · 0 comments
Labels

Comments

@eai04191
Copy link
Owner

eai04191 commented Feb 14, 2020

href={`${process.env.SERVER_URI}/v1/#?state=hogehoge`}

State

Optional, but strongly recommended.
The state can be useful for correlating requests and responses. Because your redirect_uri can be guessed, using a state value can increase your assurance that an incoming connection is the result of an authentication request. If you generate a random string, or encode the hash of some client state, such as a cookie, in this state variable, you can validate the response to additionally ensure that both the request and response originated in the same browser. This provides protection against attacks such as cross-site request forgery. See RFC-6749.
https://developer.spotify.com/documentation/general/guides/authorization-guide/

セキュリティのために適当な文字列を動的に作成して使うべき

@eai04191 eai04191 changed the title stateが固定されている login?state=が固定されている Feb 14, 2020
eai04191 added a commit that referenced this issue Mar 7, 2020
@eai04191 eai04191 added the 👍 Good first issue Good for newcomers label Mar 9, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant