Git Product home page Git Product logo

mail-whitelisting's Introduction

mail-whitelisting and field length validation for registration page

Deployment

  1. Copy jar to /keycloak-<version>/providers
  2. Run the following command to complete the installation:
${kc.home.dir}/bin/kc.sh build

Configuration

Configuration is done per realm in the keycloak administration console

Steps:

  1. Select realm to be configured
  2. Go to Authentication tab on the left and under Flows select registration
  3. On the right hand of the screen select "Duplicate" from the "Action" menu and create a copy of the registration flow
  4. Name the new flow "registration-with-whitelisting"
  5. In the Flows tab, select the newly created registration flow in order to configure it
  6. Under Add (+ icon), add a new step
  7. In the providers list, select the plugin name Registration email domain validation
  8. Save
  9. Move the newly added step to be just below Registration User Profile Creation; this is important such that all the form validation is done sequentially
  10. Set the new step to "Required"
  11. On the right there is a config button (gear settings) where the plugin is to be configured
  12. Under Flows tab, the newly created registration flow needs to be selected instead of the default Registration
  13. Click on settings (right corner with 3 verical dots) and choose bind flow
  14. Select registration flow
  15. Default Registration flow should appear as 'Not in use' now

Sample config values

<span class="message-text" style = "display:block">Your email-address is not allowed. Please contact our support at:<a href="mailto:[email protected]" style="color: white;font-weight: bold;padding-left: 10px;">[email protected]</a> and inform about this message.</span>

Steps to configure field length validator plugin

  1. Repeat step 1-6 but for previously created flow (so you have to duplicate "registration-with-whitelisting" flow)
  2. In the providers list, select the plugin name NUM Custom registration page field length validator
  3. Move the newly added execution flow to be just below Registration User Profile Creation and above "Registration email domain validation"; this is important such that all the form validation is done sequentially
  4. save
  5. On the right there is a config button (gear settings) where the plugin is to be configured (first and last name maximum length should be set to 50, department to 100 and notes to 255)
  6. repeat 12-13 from above

License

Copyright 2024 HiGHmed e.V.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

mail-whitelisting's People

Contributors

ramuesva avatar crisdelta avatar alexkarle avatar pfeild avatar askask avatar mafasva avatar romanschneidersva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.