Skip to content

Expire auth code after 10 minutes#15381

Merged
balloob merged 1 commit intodevfrom
auth-code-expiration
Jul 10, 2018
Merged

Expire auth code after 10 minutes#15381
balloob merged 1 commit intodevfrom
auth-code-expiration

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Jul 9, 2018

Description:

When a user successfully logs in, they get an authorization code that they can exchange for a pair of access/refresh tokens. This PR makes sure the auth codes expire after 10 minutes as per OAuth 4.2.1

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@awarecan
Copy link
Copy Markdown
Contributor

awarecan commented Jul 9, 2018

LGTM

@balloob balloob force-pushed the auth-code-expiration branch from 8f21364 to 9ca6504 Compare July 10, 2018 08:08
@balloob balloob merged commit dbdd0a1 into dev Jul 10, 2018
@ghost ghost removed the in progress label Jul 10, 2018
@balloob balloob deleted the auth-code-expiration branch July 10, 2018 09:20
awarecan pushed a commit to awarecan/home-assistant that referenced this pull request Jul 16, 2018
@balloob balloob mentioned this pull request Jul 20, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Dec 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants