Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to add the authentication method for the feed using Authorization bearer .... #2774

Open
mwnu opened this issue Jul 30, 2024 · 0 comments
Labels

Comments

@mwnu
Copy link

mwnu commented Jul 30, 2024

Or Authorization: token xxx

Some subscription sources only support Authorization authentication, while Miniflux's username + password method involves concatenating them in plaintext and then encoding with base64, which is not compatible with Authorization:

func (r *RequestBuilder) WithUsernameAndPassword(username, password string) *RequestBuilder {
	if username != "" && password != "" {
		r.headers.Set("Authorization", "Basic "+base64.StdEncoding.EncodeToString([]byte(username+":"+password)))
	}
	return r
}

@mwnu mwnu added the wishlist label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant