Skip to content

Commit

Permalink
Substitute resourceID with authClientID in CAuthclientEditorInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinDY authored and Fajfa committed Jul 19, 2023
1 parent c8859dd commit dd46dd3
Showing 1 changed file with 12 additions and 11 deletions.
Expand Up @@ -314,16 +314,17 @@
<pre
ref="cUrl"
data-test-id="cURL"
style="word-break: break-word;"
>
curl -X POST {{ curlURL }} \
-d grant_type=client_credentials \
-d scope='profile api' \
-u {{ resource.resourceID }}:{{ secret || 'PLACE-YOUR-CLIENT-SECRET-HERE' }}
-u {{ resource.authClientID }}:{{ secret || 'PLACE-YOUR-CLIENT-SECRET-HERE' }}
</pre>
<b-button
data-test-id="copy-cURL"
variant="link"
class="align-top ml-auto fit-content text-secondary"
class="align-top ml-auto fit-content text-secondary mr-5"
@click="copyToClipboard('cUrl')"
>
<font-awesome-icon
Expand Down Expand Up @@ -490,15 +491,15 @@ curl -X POST {{ curlURL }} \
v-if="isDeleted"
data-test-id="button-undelete"
:disabled="processing"
@confirmed="$emit('undelete', resource.resourceID)"
@confirmed="$emit('undelete', resource.authClientID)"
>
{{ $t('undelete') }}
</confirmation-toggle>
<confirmation-toggle
v-else
data-test-id="button-delete"
:disabled="processing"
@confirmed="$emit('delete', resource.resourceID)"
@confirmed="$emit('delete', resource.authClientID)"
>
{{ $t('delete') }}
</confirmation-toggle>
Expand Down Expand Up @@ -633,7 +634,7 @@ export default {
},
fresh () {
return !this.resource.resourceID || this.resource.resourceID === NoID
return !this.resource.authClientID || this.resource.authClientID === NoID
},
editable () {
Expand Down Expand Up @@ -689,7 +690,7 @@ export default {
axios.post(
this.curlURL,
params,
{ auth: { username: this.resource.resourceID, password: this.secret } }
{ auth: { username: this.resource.authClientID, password: this.secret } }
).then(response => {
this.tokenRequest.token = (response.data || {}).access_token
}).catch(error => {
Expand Down Expand Up @@ -751,16 +752,16 @@ export default {
}
</script>
<style lang="scss">
.auth-clients{
.fit-content{
.auth-clients {
.fit-content {
height:fit-content;
}
.overflow-wrap{
.overflow-wrap {
overflow-wrap: anywhere;
}
.curl .form-row{
.curl .form-row {
flex-wrap: nowrap !important;
.col{
.col {
max-width: 84.3%;
}
}
Expand Down

0 comments on commit dd46dd3

Please sign in to comment.