Git Product home page Git Product logo

atlas-mock-id's Introduction

MOCK OpenMRS SERVER ATLAS LOGIN MODULE

Mock login module for OpenMrs Atlas Server (https://github.com/openmrs/openmrs-contrib-atlas). This will help in mocking the login module required to login as OpenMrs user.

configuration

In config.php update

 $redirect_url = "http://openmrsatlas.local/"; //locally wherever openmrs atlas module is hosted
 $site_key = "localhost"; // same as in openmrs atlas server .env file settings
 $api_key = "1234567890abcdef"; // same as in openmrs atlas server .env file settings

creating virtualhost in apache2 server

  • Open "/etc/apache2/extra/httpd-vhosts.conf"

  • Add a virtual host with document root pointing at atlas-mock-id. see below for reference

    Listen 3000
    <VirtualHost *:3000>
            DocumentRoot "/pathToYour/atlas-mock-id"
            ServerName atlasmock.local
            ErrorLog "/private/var/log/apache2/atlas.mock-auth-local-error_log"
            CustomLog "/private/var/log/apache2/atlas.mock-auth-local-access_log" common
    
            <Directory "/pathToYour/atlas-mock-id">
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride All
                    Order allow,deny
                    Allow from all
            </Directory>
    </VirtualHost>
    
  • Listen command is to make apache listen on port 3000. Change is according to your configuration.

  • Make sure port mentioned is same as for the field ID_HOST in .env file of openmrs atlas server.

    'ID_HOST' => 'http://localhost:3000',
  • Register your ServerName from above in "/etc/hosts".

  • Use credential mentioned in config.php to login.

atlas-mock-id's People

Contributors

alexisduque avatar abhishekjhaji avatar

Watchers

James Cloos avatar  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.