buzzfeed / sso

sso, aka S.S.Octopus, aka octoboi, is a single sign-on solution for securing internal services
MIT License
3.07k stars 187 forks source link

sso_*: rename 'options' package to 'validators' #312

Closed Jusshersmith closed 3 years ago

Jusshersmith commented 3 years ago

Problem

In internal/pkg/options we offer a set of tools to help validate sessions. The name of the package, 'options', doesn't fit its responsibility very well, which can contribute to unnecessary confusion while reading through the code.

Solution

Separated out from some other cleanups, rename the options package to validators, and adjust any references to it.

Notes

Other pertinent information. Examples: a walkthrough of how the solution might work, why this solution is optimal compared to other possible solutions, or further TODOs beyond this PR.