You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, this is causing problems, since I have only configured the AuthorizationHeaderToken scheme.
The resulting request headers:
Authorization=token ,Authorization=Basic Og==,Sudo=token ,Basic Og==,X-GITEA-OTP=
I only want to use AuthorizationHeaderToken , and not Sudo. How can I accomplish this? Sudo requires an admin user.
The text was updated successfully, but these errors were encountered:
Can you change the openapi spec before generating the code? If so, you can remove what you don't need from the file and generate the code. No additional auth will be generated.
This is a cleaner approach than adding a property to not generate it.
Gitea provides multiple ways to authorize.
swagger-gitea.json
Right now, this is causing problems, since I have only configured the AuthorizationHeaderToken scheme.
The resulting request headers:
Authorization=token ,Authorization=Basic Og==,Sudo=token ,Basic Og==,X-GITEA-OTP=
I only want to use AuthorizationHeaderToken , and not Sudo. How can I accomplish this? Sudo requires an admin user.
The text was updated successfully, but these errors were encountered: