OSIAM is a standards based (OAuth 2.0, SCIMv2) secure identity management module for web, cloud, mobile and native applications. It also plays an important role as a building block in enterprise solution scenarios.
You just don't need to reinvent the wheel! Use the MIT licenced OSIAM...
These details are provided for information only. No information here is legal advice and should not be used as such.