ory / fosite

Extensible security first OAuth 2.0 and OpenID Connect SDK for Go.
https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=fosite
Apache License 2.0
2.33k stars 367 forks source link

Make prefix used in HMACSHAStrategy configurable #789

Closed mitar closed 2 months ago

mitar commented 9 months ago

Preflight checklist

Ory Network Project

No response

Describe your problem

I think this is primarily vanity, but HMACSHAStrategy used hard-coded ory_ prefix and I would prefer to have it be something branded for my own project.

Describe your ideal solution

I think just additional config option to configure the prefix would work well.

Workarounds or alternatives

Copying the HMACSHAStrategy and changing that small string. I think this is done in authelia.

Version

latest master

Additional Context

No response

mitar commented 2 months ago

I think this has been done with https://github.com/ory/fosite/pull/816. (It is not customizable, but at least it is easy to wrap it yourself with prefix you want.)

aeneasr commented 2 months ago

I agree, while it's still not possible out of the box, it's now easier to do this with the copy strategy.