-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Django example for token rotation
- Loading branch information
Showing
6 changed files
with
102 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
examples/django/oauth_app/migrations/0002_token_rotation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 3.2.3 on 2021-07-15 23:44 | ||
|
||
from django.db import migrations | ||
from django.db import models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("oauth_app", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
"SlackBot", "bot_refresh_token", models.TextField(null=True) | ||
), | ||
migrations.AddField( | ||
"SlackBot", "bot_token_expires_at", models.DateTimeField(null=True) | ||
), | ||
migrations.AddField( | ||
"SlackInstallation", "bot_refresh_token", models.TextField(null=True) | ||
), | ||
migrations.AddField( | ||
"SlackInstallation", "bot_token_expires_at", models.DateTimeField(null=True) | ||
), | ||
migrations.AddField( | ||
"SlackInstallation", "user_refresh_token", models.TextField(null=True) | ||
), | ||
migrations.AddField( | ||
"SlackInstallation", | ||
"user_token_expires_at", | ||
models.DateTimeField(null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Django>=3.2,<4 | ||
slack-bolt>=1.6,<2 | ||
slack-bolt>=1.7,<2 |