본문 바로가기
공부/Open Source

[Grafana/helm] Google Oauth 붙이기

by haejang 2023. 10. 29.
728x90
728x90

 

https://artifacthub.io/packages/helm/grafana/grafana

 

grafana 7.0.1 · grafana/grafana

The leading tool for querying and visualizing time series and metrics.

artifacthub.io

 

 

# 1. Google OAuth 2.0 Client 만들기

 

 

  • 승인된 자바스크립트 원본 : [grafana url]
  • 승인된 리디렉션 URI : [grafana url]/login/google

 

# 2. grafana helm value 추가

grafana.ini:
  server:
    root_url: [그라파나 url]
  ##Enable google auth  
  auth.google:
    enabled: true
    client_id: [Google Oauth Client ID]
    client_secret: [Google Oauth Client Secret]
    scopes: https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
    auth_url: https://accounts.google.com/o/oauth2/auth
    token_url: https://accounts.google.com/o/oauth2/token
    api_url: https://www.googleapis.com/oauth2/v1/userinfo
    allowed_domains: [허용할 구글 로그인 도메인] # ex) honglab.co.kr
    allow_sign_up: true

 

 

끝!

 

 

728x90
728x90

댓글