Skip to content

Conversation

@alikadkhodazadeh
Copy link

@alikadkhodazadeh alikadkhodazadeh commented Feb 17, 2025

Make OAuth redirect URIs configurable via environment variable

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 17, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Feb 17, 2025
@wxiaoguang
Copy link
Contributor

But why? These builtin apps should only accept "local" URLs. It is used by desktop applications.

@wxiaoguang wxiaoguang added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Feb 17, 2025
@alikadkhodazadeh
Copy link
Author

alikadkhodazadeh commented Feb 17, 2025 via email

@wxiaoguang
Copy link
Contributor

I tried and searched a lot to fix this internal IP problem, but I couldn't find a way to do it.

Could you elaborate what problem you were trying to fix? Maybe I could help if we could figure out the problem clearly.

@alikadkhodazadeh
Copy link
Author

alikadkhodazadeh commented Feb 17, 2025 via email

@wxiaoguang
Copy link
Contributor

Naturally, instead of 127.0.0.1, the URL address should be ( git.timely-project.ir). Isn't that right?

Could you provide more details about the "URL"? Or how to reproduce the problem with a demo setup?

There are various kinds of "URLs" in a web app. For the URLs in this PR: they are all for builtin oauth2 apps which are only used by some well-known git clients, I think none of them is related to a Gitea site's public URL.

@go-gitea go-gitea locked as resolved and limited conversation to collaborators May 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants