34 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# Generated by Django 3.1.1 on 2020-09-15 18:49
 | 
						|
 | 
						|
from django.db import migrations, models
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ("passbook_providers_oauth2", "0001_initial"),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.AddField(
 | 
						|
            model_name="oauth2provider",
 | 
						|
            name="sub_mode",
 | 
						|
            field=models.TextField(
 | 
						|
                choices=[
 | 
						|
                    ("hashed_user_id", "Based on the Hashed User ID"),
 | 
						|
                    ("user_username", "Based on the username"),
 | 
						|
                    (
 | 
						|
                        "user_email",
 | 
						|
                        "Based on the User's Email. This is recommended over the UPN method.",
 | 
						|
                    ),
 | 
						|
                    (
 | 
						|
                        "user_upn",
 | 
						|
                        "Based on the User's UPN, only works if user has a 'upn' attribute set. Use this method only if you have different UPN and Mail domains.",
 | 
						|
                    ),
 | 
						|
                ],
 | 
						|
                default="hashed_user_id",
 | 
						|
                help_text="Configure what data should be used as unique User Identifier. For most cases, the default should be fine.",
 | 
						|
            ),
 | 
						|
        ),
 | 
						|
    ]
 |