Notice: Your site will use Java, PHP, or .Net technology? Have a look at our SDK´s in order to have a rich set of fetures for accessing these APIs.  By removing the need to manage access tokens manually, the SDK greatly simplifies the process of authentication and authorizing users and apps for your project.

Prerequisites

This feature allows you to prefill one or more user field params into the register form. Using the json data structure from the User API Register response.

Usage

This is the same GET request to start a OAuth2 authorization, only in this case, you have to add the query string parameter x_prefill to your authorization url. The content of this param is a Base64 (URL safe) encoded JSON (without whitespaces and comments) with the following structure:

Example URL

https://auth.ci.dru-id.com/oauth2/authorize?client_id=231705665113870&redirect_uri=http:%252F%252Fshowcase.ci.dru-id.com%252Fshowcase%252Fcallback&response_type=code&scope=231705665113870-main&x_method=sign_up&x_prefill=eyJvYmplY3RUeXBlIjoidXNlciIsImlkcyI6eyJlbWFpbCI6eyJ2YWx1ZSI6InJldmVuZ2Vfb2ZfdGhlX3NpdGhAeW9wbWFpbC5uZXQifSwic2NyZWVuX25hbWUiOnsidmFsdWUiOiJmb3JjZS1sdWtlIn0sIm5hdGlvbmFsX2lkIjp7InZhbHVlIjoiNTE0MTk0NEgifSwicGhvbmVfbnVtYmVyIjp7InZhbHVlIjoiNjY2NjYxMTM4In19LCJkYXRhcyI6eyJiaXJ0aGRheSI6eyJ2YWx1ZSI6IjI1LzA1LzE5NzcifSwibmFtZSI6eyJ2YWx1ZSI6Ikdlb3JnZSJ9LCJzdXJuYW1lIjp7InZhbHVlIjoiTHVjYXMifSwiZ2VuZGVyIjp7InZhbHVlIjoiMiJ9LCJjb21wYW55Ijp7InZhbHVlIjoiMjE1In0sInBvc2l0aW9uIjp7InZhbHVlIjoiQ3JlYXRpdmUgQ29uc3VsdGFudCJ9LCJjb21tZW50cyI6eyJ2YWx1ZSI6IkEgc3BlY2lhbCBlZmZlY3QgaXMgYSB0b29sLCBhIG1lYW5zIG9mIHRlbGxpbmcgYSBzdG9yeS4gQSBzcGVjaWFsIGVmZmVjdCB3aXRob3V0IGEgc3RvcnkgaXMgYSBwcmV0dHkgYm9yaW5nIHRoaW5nLiJ9fSwibG9jYXRpb24iOnsiYWRkcmVzcyI6eyJzdHJlZXRBZGRyZXNzIjoiRnJhbmNpc2NhIGRlbGdhZG8gMTEsIDIiLCJsb2NhbGl0eSI6IkFsY29iZW5kYXMiLCJyZWdpb24iOiIyOCIsInBvc3RhbENvZGUiOiIyODEwOCIsImNvdW50cnkiOiIxIn0sInRlbGVwaG9uZSI6IjkxNjU3NDEyMCJ9fQ==