{"id":21161343,"url":"https://github.com/apinf/login-parameter-configuration","last_synced_at":"2026-01-02T01:59:25.788Z","repository":{"id":87590819,"uuid":"158391561","full_name":"apinf/login-parameter-configuration","owner":"apinf","description":"Describes management of login platforms' parameters","archived":false,"fork":false,"pushed_at":"2018-11-20T13:25:24.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T09:28:02.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apinf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-20T13:11:50.000Z","updated_at":"2018-11-20T13:25:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"2cb40723-0424-454e-a2d6-73ec49efa20e","html_url":"https://github.com/apinf/login-parameter-configuration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinf%2Flogin-parameter-configuration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinf%2Flogin-parameter-configuration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinf%2Flogin-parameter-configuration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinf%2Flogin-parameter-configuration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apinf","download_url":"https://codeload.github.com/apinf/login-parameter-configuration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243606954,"owners_count":20318314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T13:13:02.583Z","updated_at":"2026-01-02T01:59:25.756Z","avatar_url":"https://github.com/apinf.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# login-parameter-configuration\nDescribes management of login platforms' parameters\n\nManaging OAuth login parameters in APInf\n========================================\n\nDifferent OAuth logins\n----------------------\n\nIn some cases an OAuth login possibility is needed in addition to the basic login with password and username.\n\nCurrently in APInf platform there are three OAuth login possibilities:\n- github\n- fiware\n- HSL\n\nThe github and fiware OAuth logins are included in as Meteor packages, \nhowever the HSL OAuth login program code is a part of APInf codebase.\nAll the OAuth login functionalities rely on Meteor account related packages.\n\n\nStarting to use OAuth login\n---------------------------\n\nEach of those OAuth logins needs certain parameters to be set in order to be able to connect the OAuth servers in question.\n\nThe flow is as follows:\n\nIf the OAuth login service is not configured, in Sign_in page the User is prompted to provide configuration parameters.\n\nThe configuration parameters given via prompt are stored into a MongoDB collection ie. the external database:\n\n      meteor_accounts_loginServiceConfiguration\n\nIf the OAuth login service is configured, the configuration parameters are read from database and \na request is sent to OAuth server in order to get the credentials.\n\n\nModifying OAuth login configuration parameters\n----------------------------------------------\n\nOnce stored in meteor_accounts_loginServiceConfiguration collection, there is no UI provided to update \nthe configuration parameters. \nThus in APInf there is implemented an internal interface for configuration parameter update.\n\nFor updating the configuration parameters there is used another MongoDB collection, ie. the internal database:\n\n     LoginPlatforms\n\nA signed in Admin User can choose selection Login Platforms to open a page for configuration parameter update.\n\n\nUpdate of configuration parameters\n----------------------------------\n\nFrom meteor_accounts_loginServiceConfiguration to LoginPlatforms\n\nEvery time when the login platforms page is opened, the configuration parameter values in collection LoginPlatforms \nare updated to be same as in collection meteor_accounts_loginServiceConfiguration.\n\nFrom LoginPlatforms to meteor_accounts_loginServiceConfiguration\n\nWhen parameter values are modified and saved in Login platforms page, the new values are stored into both collections:\nLoginPlatforms and meteor_accounts_loginServiceConfiguration. \n\n\nRemoving configuration parameters\n---------------------------------\n\nIt is also possible to remove configuration parameter values.\n\nWhen Admin User empties the parameter values in login platforms page and saves it, the values are\nremoved from both collections.\n\nNote! When configuration parameters are removed from a OAuth service, they can be added either by using Sign_in page\nor Login Platforms page.\n\n\nAdding configuration parameters\n-------------------------------\n\nAdmin User can add configuration parameter values using Login platforms page. \n\nWhen added values are saved, they are stored in both databases.\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapinf%2Flogin-parameter-configuration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapinf%2Flogin-parameter-configuration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapinf%2Flogin-parameter-configuration/lists"}