添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Announcement icon Fall into generosity with our Membership Drive! By joining our membership program, you’ll provide philanthropic support to the Drupal Association and ensure that the Drupal Project continues thriving and innovating.
  • Configure Drupal as OAuth Server:
  • Configure Grafana as OAuth Client:
  • Let’s see how this works:
  • Support:
  • Need assistance? Contact our 24*7 support team
  • This document will walk you through the steps to configure Grafana as OAuth Client and Drupal as OAuth server . Using the miniOrange OAuth server module you can allow the users to perform SSO login between Grafana and Drupal, thus allowing the users to log in to Grafana using Drupal credentials. The module is compatible with Drupal 7, Drupal 8, Drupal 9, as well as Drupal 10.

    Check out the Installation steps:

    Installation Steps

    Grafana Installation:

  • Click here to download Grafana .
  • Select a Grafana version you want to install.
  • Click Download the installer.
  • Open and run the installer.
  • To run Grafana, open your browser and go to the Grafana port ( http://localhost:3000/ ) is default.
  • Configure Drupal as OAuth Server:

  • Navigate to the Drupal site and go to the Configuration tab from the top navigation bar.
  • Now, select the miniOrange OAuth server configuration .
  • Click on the Add Client button.
  • Enter the Application Name under the Application Name text field.
  • Enter the Callback URL {BASEURL/login/generic_oauth} into the Callback/Redirect URL text field. You can add multiple Callback URLs by clicking on the Add More button next to the Callback/Redirect URL text field.
  • Click on the Save button.
  • Configure Grafana as OAuth Client:

  • Under the Configure Applications section copy the Client ID from the Drupal site.
  • Open the base directory of the Grafana and navigate to the location where sample.ini file is located.
  • If you installed Grafana using the deb or rpm packages on your Linux OS, then your configuration file is located at /etc/grafana/grafana.ini and a separate custom.ini is not used. This path is specified in the Grafana init.d script using --config file parameter.
  • For Windows the file is located in GrafanaLabs/Grafana/conf .
  • Make a copy of the sample.ini file and rename it to custom.ini .
  • Open the file with a text editor.
  • Search for auth.generic_oauth inside the file and uncomment the section.
  • Enter the Application Name besides the name .
  • Change the value for enable to true .
  • Paste the copied Client ID besides the client_id .
  • Navigate back to the Drupal site and copy the Client Secret .
  • Navigate to the custom.ini file and paste the copied Client Secret besides client_secret .

  • Navigate to the Drupal site and copy the Authorize Endpoint .
  • Navigate to the custom.ini file and paste the copied Authorize Endpoint into the auth_url .
  • Similarly repeat the steps for Access Token Endpoint and Get User Info Endpoint .
  • Paste the Access Token Endpoint into token_url and Get User Info Endpoint into the api_url .

  • Once the changes are made save the file and restart the Grafana service
  • You have successfully configured Grafana as OAuth Client and Drupal as OAuth server.

    Let’s see how this works:

  • Open a new window/private browser and navigate to the login page of Grafana ( http://localhost:3000/ ).
  • Click on the Sign in with Drupal button.

    Need assistance? Contact our 24*7 support team

    If you require any help with installing or configuring this module, please feel free to reach out to us at our 24*7 Support by clicking on the Support Icon from the bottom right corner and send us a query. You can also join us on Drupal Slack in the #miniorange channel.

    Get In Touch With Us Join Our Slack Channel

    back to top Back to top

  • Log in, click Edit , and edit this page
  • Log in, click Discuss , update the Page status value, and suggest an improvement
  • Log in and create a Documentation issue with your suggestion
  •