# Module: vertx-auth-oauth2-js/o_auth2_auth

### Classes

OAuth2Auth

### Methods

#### (static) OAuth2Auth.create(vertx, flow, config) → {OAuth2Auth}

Create a OAuth2 auth provider

##### Parameters:

Name | Type | Description
--- | --- | ---
`vertx` | Vertx | the Vertx instance
`flow` | Object |
`config` | Object | the config

Source:
  - vertx-auth-oauth2-js/o_auth2_auth.js, line 148

##### Returns:

the auth provider

Type
  OAuth2Auth

#### (static) OAuth2Auth.createKeycloak(vertx, flow, config) → {OAuth2Auth}

Create a OAuth2 auth provider

##### Parameters:

Name | Type | Description
--- | --- | ---
`vertx` | Vertx | the Vertx instance
`flow` | Object |
`config` | Object | the config as exported from the admin console

Source:
  - vertx-auth-oauth2-js/o_auth2_auth.js, line 132

##### Returns:

the auth provider

Type
  OAuth2Auth