Authcode workflow

Implements  the authorization endpoint with the "code" request completed.