We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 885344a commit c95af0fCopy full SHA for c95af0f
1 file changed
resources/views/oauth2/profile/edit-client.blade.php
@@ -45,9 +45,14 @@
45
});
46
@endforeach
47
48
- var scopes = [];
+ var scopes = ['openid'];
49
+ @if ($client->use_refresh_token)
50
+ scopes.push('offline_access');
51
+ @endif
52
@foreach ($scopes as $scope)
53
+ @if ( in_array($scope->id, $selected_scopes))
54
scopes.push('{!!trim($scope->name)!!}');
55
56
57
58
$(document).ready(function () {
@@ -61,9 +66,10 @@
61
66
62
67
$(document).on('click', '.copy-scopes-button', function(e){
63
68
// Copy the text inside the text field
64
- navigator.clipboard.writeText(scopes);
69
+
70
+ navigator.clipboard.writeText(scopes.join(' '));
65
71
// Alert the copied text
- alert("Copied Scopes: " + scopes);
72
+ alert("Copied Scopes: " + scopes.join(' '));
73
74
75
</script>
0 commit comments