yohcop / openid-go

OpenID consumer implementation in Go - golang
Other
83 stars 40 forks source link

Normalize the Identifier before discovery. #23

Closed xStrom closed 8 years ago

xStrom commented 8 years ago

The OpenID 2.0 spec point 7.2 states that "The end user's input MUST be normalized into an Identifier ..."

The current code does contain a function that does the normalizing, however it isn't used anywhere, not even in the example. This patch adds normalization to the start of discovery to meet the spec requirement.

yohcop commented 8 years ago

Thanks! Would you mind adding a quick test as well?

xStrom commented 8 years ago

I added a basic test case.

yohcop commented 8 years ago

Thanks!