forked from ansible/django-ansible-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c71771
commit 3fe445f
Showing
14 changed files
with
471 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Sanity | ||
env: | ||
LC_ALL: "C.UTF-8" # prevent ERROR: Ansible could not initialize the preferred locale: unsupported locale setting | ||
on: | ||
pull_request: | ||
push: | ||
jobs: | ||
help_text: | ||
name: Help Test Check | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: read | ||
contents: read | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Install make | ||
run: sudo apt install make | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
|
||
- name: Install build requirements | ||
run: sudo apt-get update && sudo apt-get install -y libsasl2-dev libldap2-dev libssl-dev libxmlsec1-dev | ||
|
||
- name: Install python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install requirements | ||
run: pip3.11 install -r requirements/requirements_all.txt -r requirements/requirements_dev.txt | ||
|
||
- name: Run help text check | ||
run: ./manage.py help_text_check --applications=dab --ignore-file=./.help_text_check.ignore |
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,23 @@ | ||
dab_authentication.AuthenticatorUser.created # Inherited from social auth | ||
dab_authentication.AuthenticatorUser.extra_data # Inherited from social auth | ||
dab_authentication.AuthenticatorUser.modified # Inherited from social auth | ||
dab_authentication.AuthenticatorUser.uid # Inherited from social auth | ||
|
||
dab_oauth2_provider.OAuth2AccessToken.expires # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2AccessToken.id_token # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2AccessToken.source_refresh_token # Inherited from django-oauth-toolkit | ||
|
||
dab_oauth2_provider.OAuth2Application.algorithm # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2Application.client_id # Inherited from django-oauth-toolkit | ||
|
||
dab_oauth2_provider.OAuth2IDToken.application # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2IDToken.expires # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2IDToken.jti # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2IDToken.scope # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2IDToken.user # Inherited from django-oauth-toolkit | ||
|
||
dab_oauth2_provider.OAuth2RefreshToken.access_token # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2RefreshToken.application # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2RefreshToken.revoked # Inherited from django-oauth-toolkit | ||
dab_oauth2_provider.OAuth2RefreshToken.user # Inherited from django-oauth-toolkit | ||
|
50 changes: 50 additions & 0 deletions
50
...e/activitystream/migrations/0005_alter_entry_changes_alter_entry_content_type_and_more.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,50 @@ | ||
# Generated by Django 4.2.16 on 2024-11-22 21:25 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('contenttypes', '0002_remove_content_type_name'), | ||
('dab_activitystream', '0004_alter_entry_created_alter_entry_created_by'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='entry', | ||
name='changes', | ||
field=models.JSONField(blank=True, help_text='The changes to the system recorded by this entry.', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='entry', | ||
name='content_type', | ||
field=models.ForeignKey(help_text='The content type which was changed in this entry.', on_delete=django.db.models.deletion.DO_NOTHING, to='contenttypes.contenttype'), | ||
), | ||
migrations.AlterField( | ||
model_name='entry', | ||
name='object_id', | ||
field=models.TextField(blank=True, help_text='The object id which was modified in this entry.', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='entry', | ||
name='operation', | ||
field=models.CharField(choices=[('create', 'Entity created'), ('update', 'Entity updated'), ('delete', 'Entity deleted'), ('associate', 'Entity was associated with another entity'), ('disassociate', 'Entity was disassociated with another entity')], help_text='The type of change recorded by the entry (i.e. create/update/delete/etc).', max_length=12), | ||
), | ||
migrations.AlterField( | ||
model_name='entry', | ||
name='related_content_type', | ||
field=models.ForeignKey(blank=True, help_text='The content type if this entry is recording an many to many (M2M) change.', null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='related_content_type', to='contenttypes.contenttype'), | ||
), | ||
migrations.AlterField( | ||
model_name='entry', | ||
name='related_field_name', | ||
field=models.CharField(blank=True, help_text='The related field name if this entry is for an many to many (M2M) relationship.', max_length=64, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='entry', | ||
name='related_object_id', | ||
field=models.TextField(blank=True, help_text='The object id of the related model if this entry is for an many to many (M2M) change.', 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
41 changes: 41 additions & 0 deletions
41
...le_base/authentication/migrations/0016_alter_authenticatoruser_access_allowed_and_more.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,41 @@ | ||
# Generated by Django 4.2.16 on 2024-11-22 21:25 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('dab_authentication', '0015_alter_authenticator_category_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='authenticatoruser', | ||
name='access_allowed', | ||
field=models.BooleanField(default=None, help_text='Tracks if this user was allowed access to the system from the authenticator maps.', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='authenticatoruser', | ||
name='claims', | ||
field=models.JSONField(blank=True, default=dict, help_text='The claims for the user as generated by the authenticator maps on their last login.'), | ||
), | ||
migrations.AlterField( | ||
model_name='authenticatoruser', | ||
name='last_login_map_results', | ||
field=models.JSONField(blank=True, default=list, help_text='A data structure indicating how the authenticator maps were evaluated for the last login attempt.'), | ||
), | ||
migrations.AlterField( | ||
model_name='authenticatoruser', | ||
name='provider', | ||
field=models.ForeignKey(help_text='The provider this user authenticated from.', on_delete=django.db.models.deletion.PROTECT, related_name='authenticator_providers', to='dab_authentication.authenticator', to_field='slug'), | ||
), | ||
migrations.AlterField( | ||
model_name='authenticatoruser', | ||
name='user', | ||
field=models.ForeignKey(help_text='The local DB user related to this authenticator user.', on_delete=django.db.models.deletion.CASCADE, related_name='authenticator_users', to=settings.AUTH_USER_MODEL), | ||
), | ||
] |
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
51 changes: 51 additions & 0 deletions
51
ansible_base/oauth2_provider/migrations/0007_alter_oauth2accesstoken_application_and_more.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,51 @@ | ||
# Generated by Django 4.2.16 on 2024-11-22 21:25 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('dab_oauth2_provider', '0006_alter_oauth2accesstoken_created_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='oauth2accesstoken', | ||
name='application', | ||
field=models.ForeignKey(blank=True, help_text='The related application. If None, this is a user token instead of an application token.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='access_tokens', to=settings.OAUTH2_PROVIDER_APPLICATION_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='oauth2accesstoken', | ||
name='description', | ||
field=models.TextField(blank=True, default='', help_text='A description for this token.'), | ||
), | ||
migrations.AlterField( | ||
model_name='oauth2accesstoken', | ||
name='last_used', | ||
field=models.DateTimeField(default=None, editable=False, help_text='A timestamp of when this token was last used.', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='oauth2accesstoken', | ||
name='token', | ||
field=models.CharField(help_text='The generated token value.', max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='oauth2application', | ||
name='description', | ||
field=models.TextField(blank=True, default='', help_text='A description of this application.'), | ||
), | ||
migrations.AlterField( | ||
model_name='oauth2application', | ||
name='user', | ||
field=models.ForeignKey(blank=True, help_text='The user who created the application.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='applications', to=settings.AUTH_USER_MODEL), | ||
), | ||
migrations.AlterField( | ||
model_name='oauth2refreshtoken', | ||
name='token', | ||
field=models.CharField(help_text='The refresh token value.', max_length=255), | ||
), | ||
] |
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
Oops, something went wrong.