mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-10 00:18:57 +00:00
Feature: OAuth2 Gmail and Outlook email support (#7866)
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# Generated by Django 5.1.1 on 2024-10-05 17:12
|
||||
|
||||
from django.db import migrations
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("paperless_mail", "0026_mailrule_enabled"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="mailaccount",
|
||||
name="expiration",
|
||||
field=models.DateTimeField(
|
||||
blank=True,
|
||||
help_text="The expiration date of the refresh token. ",
|
||||
null=True,
|
||||
verbose_name="expiration",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="mailaccount",
|
||||
name="account_type",
|
||||
field=models.PositiveIntegerField(
|
||||
choices=[(1, "IMAP"), (2, "Gmail OAuth"), (3, "Outlook OAuth")],
|
||||
default=1,
|
||||
verbose_name="account type",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="mailaccount",
|
||||
name="refresh_token",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
help_text="The refresh token to use for token authentication e.g. with oauth2.",
|
||||
max_length=2048,
|
||||
null=True,
|
||||
verbose_name="refresh token",
|
||||
),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user