Skip to content

OhadR/authentication-flows-js-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

authentication-flows-js-elasticsearch

npm Package

This project is a ElasticSearch implementation for AuthenticationAccountRepository of authentication-flows-js.

environment variables

ELASTIC_SEARCH_URL
ELASTIC_AUTH: username:password

preparations

download elasticsearch docker:

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.9.0

run elastic docker (version 7.1.0):

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.1.0

create mapping for AFM:

PUT
http://localhost:9200/authentication-account-22042021
{
    "mappings": {
        "dynamic": "false",
        "properties": {
            "username": {
                "type": "keyword"
            },
            "passwordLastChangeDate": {
                "type": "date"
            }
            "token": {
                "type": "keyword"
            }
            "tokenDate": {
                "type": "date"
            }
        }
    }    
}    

set environment variable:

set ELASTIC_SEARCH_URL=https://localhost:9200

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published