add-scope-to-token #33

Merged
techknowlogick merged 13 commits from tobiasbp/terraform-provider-gitea:add-scope-to-token into main 2023-11-16 00:52:35 +00:00
Contributor

This PR adds the ability to set scopes for tokens (they can not be used for much without). Removed the username from the token resource as the owner can not be configured, as it will be owned by the user creating the resource.

As far as I can tell, it's not possible to modify the scopes for a existing token using the API, so a token created by the provider will be recreated if the list of scopes is updated. This reflects what is possible using the GUI.

This PR fixes this issue: #32

This PR adds the ability to set scopes for tokens (they can not be used for much without). Removed the _username_ from the _token resource_ as the owner can not be configured, as it will be owned by the user creating the resource. As far as I can tell, it's not possible to modify the scopes for a existing token using the API, so a token created by the provider will be recreated if the list of scopes is updated. This reflects what is possible using the GUI. This PR fixes this issue: https://gitea.com/gitea/terraform-provider-gitea/issues/32
tobiasbp added 10 commits 2023-10-24 12:02:49 +00:00
tobiasbp added 1 commit 2023-10-24 12:20:41 +00:00
Some checks failed
Setup Terraform / Terraform Versions (pull_request) Has been cancelled
1e7e286a8f
Fix: Add token scope 'all'
tobiasbp added 1 commit 2023-10-24 12:42:05 +00:00
All checks were successful
Setup Terraform / Terraform Versions (pull_request) Successful in 9s
06567343b9
Update documentation for token to include info on scopes
tobiasbp added 1 commit 2023-10-25 07:17:55 +00:00
All checks were successful
Setup Terraform / Terraform Versions (pull_request) Successful in 9s
6d8176cb3d
Merge branch 'main' into add-scope-to-token
Author
Contributor

I don't think I can do anything about the failed check. It looks to me like it is not related to my changes?

I don't think I can do anything about the failed check. It looks to me like it is not related to my changes?
tobiasbp requested review from techknowlogick 2023-11-01 07:51:08 +00:00
techknowlogick merged commit 167ce6ed80 into main 2023-11-16 00:52:35 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/terraform-provider-gitea#33
No description provided.