Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substitute resourceID with authClientID in CAuthclientEditorInfo #1337

Merged
merged 1 commit into from Jul 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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