Conditions | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from rest_framework import serializers |
||
13 | def create(self, validated_data): |
||
14 | strategy = load_strategy(self.context['request']) |
||
15 | redirect_uri = strategy.session_get('redirect_uri') |
||
16 | |||
17 | backend_name = self.context['view'].kwargs['provider'] |
||
18 | backend = load_backend( |
||
19 | strategy, backend_name, redirect_uri=redirect_uri |
||
20 | ) |
||
21 | return backend.auth_complete() |
||
22 | |||
39 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.