Implementing OAuth2 provider, step1