This commit is contained in:
parent
317f6772e9
commit
38ebcd3084
@ -59,16 +59,40 @@ Now choose this options, you can use other `Session lifetime` if you want
|
|||||||
| **Access token URL** | https://github.com/login/oauth/access_token |
|
| **Access token URL** | https://github.com/login/oauth/access_token |
|
||||||
| **Resource URL** | https://api.github.com/user |
|
| **Resource URL** | https://api.github.com/user |
|
||||||
| **Redirect URL** | your Portainer URL eg: http://IP:9000 |
|
| **Redirect URL** | your Portainer URL eg: http://IP:9000 |
|
||||||
| **Logout URL** | leave empty |
|
| **Logout URL** | *leave empty* |
|
||||||
| **User identifier** | login |
|
| **User identifier** | login |
|
||||||
| **Scopes** | id,email,name |
|
| **Scopes** | id,email,name |
|
||||||
|
|
||||||
|
Remember Gitea Username and Portainer Username need to math otherwise create a new username in Portainer with same name or enable `Automatic user provisioning` and then after login disable it again
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
# Gitea
|
# Gitea
|
||||||
|
|
||||||
Enter** https://git.sthope.dev/user/settings and go to `Applications`
|
For Gitea instead of Github, enter your user `Settings` and go to `Applications` and create a new one.
|
||||||
|
|
||||||
<img src="{{page.pic06}}"/>
|
<img src="{{page.pic06}}"/>
|
||||||
|
`Redirect URL`= use your Portainer URL, eg: http://IP:9000
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
After that is created, Gitea will give you the ClientID and Secret you should save to use with Portainer.
|
||||||
<img src="{{page.pic07}}"/>
|
<img src="{{page.pic07}}"/>
|
||||||
|
|
||||||
|
Now for Gitea the configs are a little different, follow:
|
||||||
|
|
||||||
|
| :-------------------- | :---------------------------------------- |
|
||||||
|
| **Client ID** | ClientID you copied from Gitea |
|
||||||
|
| **Client secret** | Secret you copied from Gitea |
|
||||||
|
| **Authorization URL** | http://GITEA_URL/login/oauth/authorize |
|
||||||
|
| **Access token URL** | http://GITEA_URL/login/oauth/access_token |
|
||||||
|
| **Resource URL** | http://GITEA_URL/login/oauth/userinfo |
|
||||||
|
| **Redirect URL** | your Portainer URL eg: http://IP:9000 |
|
||||||
|
| **Logout URL** | *leave empty* |
|
||||||
|
| **User identifier** | preferred_username |
|
||||||
|
| **Scopes** | *leave empty* |
|
||||||
|
|
||||||
|
Should now be configured and you should be able to login using your Gitea Account
|
||||||
|
|
||||||
|
Remember Gitea Username and Portainer Username need to math otherwise create a new username in Portainer with same name or enable `Automatic user provisioning` and then after login disable it again
|
Loading…
x
Reference in New Issue
Block a user