Skip to main content

IVAO

Go to the Create OAuth Application page and create a new app, he application type must be "Virtual Airline App". To choose this type, you need to be logged in with the account of the owner of the virtual airline on IVAO. In the redirect URL, enter: https://yourdomain.com/oauth/ivao/callback

In the .env file, add the following:

.env
IVAO_OAUTH_ENABLED=true
IVAO_CLIENT_ID={your_client_id}
IVAO_CLIENT_SECRET={your_client_secret}

You can retrieve your client ID and your client secret from the OAuth clients page after creating the client as explained above.

Now, your users can link their IVAO account to their phpVMS account and use their IVAO account to log in. The link between the two accounts is automatically established when clicking the "Login with IVAO" button on the login page. However, if the email address of the IVAO account is different from the email address of the phpVMS account, it must be done manually on the profile page.

Customizing scopes

You can add scopes to the OAuth request in addition to the default scopes by adding your scopes to the .env file, separated by commas. See IVAO Scopes List

.env
IVAO_SCOPES=scope1,scope2