User Tools

Site Tools


сервис_http

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_http [2023/09/17 20:11]
val [Прокси "красивого" URL в приложение (пример 3)]
сервис_http [2023/11/01 17:22]
val [Управление доступом к HTTP серверу с использованием OAuth2 аутентификации]
Line 820: Line 820:
   * [[https://​github.com/​zmartzone/​mod_auth_openidc/​wiki/​GitLab-OAuth2]]   * [[https://​github.com/​zmartzone/​mod_auth_openidc/​wiki/​GitLab-OAuth2]]
   * [[Инструмент GitLab#​Сервер OAuth2]] из GitLab   * [[Инструмент GitLab#​Сервер OAuth2]] из GitLab
 +
 +  * [[https://​www.janua.fr/​using-apache2-mod_auth_openidc-module-with-keycloak-openid-connect/​|Using apache2 mod_auth_openidc module with Keycloak (OpenID Connect)]]
  
 <​code>​ <​code>​
Line 827: Line 829:
 </​code><​code>​ </​code><​code>​
 ... ...
 +        # GitLab
         OIDCSSLValidateServer Off         OIDCSSLValidateServer Off
         OIDCProviderMetadataURL https://​server.corp13.un/​.well-known/​openid-configuration         OIDCProviderMetadataURL https://​server.corp13.un/​.well-known/​openid-configuration
         OIDCRedirectURI http://​gate.corp13.un/​cgi-bin/​test-cgi         OIDCRedirectURI http://​gate.corp13.un/​cgi-bin/​test-cgi
-        OIDCClientID e...............................................4 +        OIDCClientID e...............................................4 ​        #​Application ID 
-        OIDCClientSecret 7.................................................4+        OIDCClientSecret 7.................................................4 ​  #Secret 
 +        OIDCCryptoPassphrase anystring 
 + 
 +        # Keycloak 
 +        OIDCSSLValidateServer Off 
 +        OIDCProviderMetadataURL https://​server.corp16.un:​8443/​realms/​myrealm/​.well-known/​openid-configuration 
 +        OIDCRedirectURI http://​gate.corp16.un/​cgi-bin/​test-cgi 
 +        OIDCClientID test-cgi
         OIDCCryptoPassphrase anystring         OIDCCryptoPassphrase anystring
 ... ...
Line 842: Line 852:
                         Require valid-user                         Require valid-user
 ... ...
 +</​code><​code>​
 +# a2enmod auth_openidc
 </​code><​code>​ </​code><​code>​
 Проверка:​ http://​gate.corp13.un/​cgi-bin/​test-cgi/ ​   !!! Последний / обязательно !!! Проверка:​ http://​gate.corp13.un/​cgi-bin/​test-cgi/ ​   !!! Последний / обязательно !!!
сервис_http.txt · Last modified: 2024/05/24 09:20 by val