本站源代码
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

58 rindas
2.9KB

  1. <div class="oauth2 field {{if not (eq .type 6)}}hide{{end}}">
  2. <div class="inline required field">
  3. <label>{{.i18n.Tr "admin.auths.oauth2_provider"}}</label>
  4. <div class="ui selection type dropdown">
  5. <input type="hidden" id="oauth2_provider" name="oauth2_provider" value="{{.oauth2_provider}}">
  6. <div class="text">{{.oauth2_provider}}</div>
  7. <i class="dropdown icon"></i>
  8. <div class="menu">
  9. {{range $key, $value := .OAuth2Providers}}
  10. <div class="item" data-value="{{$key}}">{{$value.DisplayName}}</div>
  11. {{end}}
  12. </div>
  13. </div>
  14. </div>
  15. <div class="required field">
  16. <label for="oauth2_key">{{.i18n.Tr "admin.auths.oauth2_clientID"}}</label>
  17. <input id="oauth2_key" name="oauth2_key" value="{{.oauth2_key}}">
  18. </div>
  19. <div class="required field">
  20. <label for="oauth2_secret">{{.i18n.Tr "admin.auths.oauth2_clientSecret"}}</label>
  21. <input id="oauth2_secret" name="oauth2_secret" value="{{.oauth2_secret}}">
  22. </div>
  23. <div class="open_id_connect_auto_discovery_url required field">
  24. <label for="open_id_connect_auto_discovery_url">{{.i18n.Tr "admin.auths.openIdConnectAutoDiscoveryURL"}}</label>
  25. <input id="open_id_connect_auto_discovery_url" name="open_id_connect_auto_discovery_url" value="{{.open_id_connect_auto_discovery_url}}">
  26. </div>
  27. <div class="oauth2_use_custom_url inline field">
  28. <div class="ui checkbox">
  29. <label><strong>{{.i18n.Tr "admin.auths.oauth2_use_custom_url"}}</strong></label>
  30. <input id="oauth2_use_custom_url" name="oauth2_use_custom_url" type="checkbox">
  31. </div>
  32. </div>
  33. <div class="oauth2_use_custom_url_field oauth2_auth_url required field">
  34. <label for="oauth2_auth_url">{{.i18n.Tr "admin.auths.oauth2_authURL"}}</label>
  35. <input id="oauth2_auth_url" name="oauth2_auth_url" value="{{.oauth2_auth_url}}">
  36. </div>
  37. <div class="oauth2_use_custom_url_field oauth2_token_url required field">
  38. <label for="oauth2_token_url">{{.i18n.Tr "admin.auths.oauth2_tokenURL"}}</label>
  39. <input id="oauth2_token_url" name="oauth2_token_url" value="{{.oauth2_token_url}}">
  40. </div>
  41. <div class="oauth2_use_custom_url_field oauth2_profile_url required field">
  42. <label for="oauth2_profile_url">{{.i18n.Tr "admin.auths.oauth2_profileURL"}}</label>
  43. <input id="oauth2_profile_url" name="oauth2_profile_url" value="{{.oauth2_profile_url}}">
  44. </div>
  45. <div class="oauth2_use_custom_url_field oauth2_email_url required field">
  46. <label for="oauth2_email_url">{{.i18n.Tr "admin.auths.oauth2_emailURL"}}</label>
  47. <input id="oauth2_email_url" name="oauth2_email_url" value="{{.oauth2_email_url}}">
  48. </div>
  49. {{if .OAuth2DefaultCustomURLMappings}}
  50. {{range $key, $value := .OAuth2DefaultCustomURLMappings}}
  51. <input id="{{$key}}_token_url" value="{{$value.TokenURL}}" type="hidden" />
  52. <input id="{{$key}}_auth_url" value="{{$value.AuthURL}}" type="hidden" />
  53. <input id="{{$key}}_profile_url" value="{{$value.ProfileURL}}" type="hidden" />
  54. <input id="{{$key}}_email_url" value="{{$value.EmailURL}}" type="hidden" />
  55. {{end}}
  56. {{end}}
  57. </div>
上海开阖软件有限公司 沪ICP备12045867号-1