Skip to content

Login example and README.md change#138

Merged
ashah-splunk merged 4 commits intodevelopfrom
DVPL-9897
Aug 23, 2021
Merged

Login example and README.md change#138
ashah-splunk merged 4 commits intodevelopfrom
DVPL-9897

Conversation

@vmalaviya-splunk
Copy link
Contributor

No description provided.

```shell
#### From shell ####
# Enable token authetication
curl -k -u <username>:<password> -X POST <scheme>://<host>:<port>/services/admin/token-auth/tokens_auth -d disabled=false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe /services/admin/token-auth/tokens_auth the admin in this path is necessary so no change needed

README.md Outdated
curl -k -u <username>:<password> -X POST <scheme>://<host>:<port>/services/admin/token-auth/tokens_auth -d disabled=false

# Create a token
curl -k -u <username>:<password> -X POST <scheme>://<host>:<port>/services/authorization/tokens?output_mode=json --data name=admin --data audience=Users --data-urlencode expires_on=+30d
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I think name=admin could refer to any valid username so suggest changing to name=<username> - I just tried this so I think that should be correct

curl -k -u <username>:<password> -X POST <scheme>://<host>:<port>/services/admin/token-auth/tokens_auth -d disabled=false

Execute following command to create bearer token manually:
curl -k -u <username>:<password> -X POST <scheme>://<host>:<port>/services/authorization/tokens?output_mode=json --data name=admin --data audience=Users --data-urlencode expires_on=+30d
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same change here: name=admin -> name=<username>

Copy link
Contributor

@fantavlik fantavlik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really good, I had a minor correction but feel free to merge once that gets addressed, or feel free to push back if you think I have it incorrect.

@ashah-splunk ashah-splunk merged commit 697c0ad into develop Aug 23, 2021
@vmalaviya-splunk vmalaviya-splunk mentioned this pull request Mar 7, 2022
@ashah-splunk ashah-splunk deleted the DVPL-9897 branch April 20, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants