mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			389 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			389 B
		
	
	
	
		
			Go
		
	
	
	
| package setting
 | |
| 
 | |
| type OAuthInfo struct {
 | |
| 	ClientId, ClientSecret string
 | |
| 	Scopes                 []string
 | |
| 	AuthUrl, TokenUrl      string
 | |
| 	Enabled                bool
 | |
| 	AllowedDomains         []string
 | |
| 	ApiUrl                 string
 | |
| 	AllowSignup            bool
 | |
| }
 | |
| 
 | |
| type OAuther struct {
 | |
| 	GitHub, Google, Twitter bool
 | |
| 	OAuthInfos              map[string]*OAuthInfo
 | |
| }
 | |
| 
 | |
| var OAuthService *OAuther
 |