{"action":"opened","number":150,"pull_request":{"url":"https://api.github.com/repos/SaturnFramework/Saturn/pulls/150","id":229179971,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MTc5OTcx","html_url":"https://github.com/SaturnFramework/Saturn/pull/150","diff_url":"https://github.com/SaturnFramework/Saturn/pull/150.diff","patch_url":"https://github.com/SaturnFramework/Saturn/pull/150.patch","issue_url":"https://api.github.com/repos/SaturnFramework/Saturn/issues/150","number":150,"state":"open","locked":false,"title":"[WIP] *_with_configuration custom operations in application CE","user":{"login":"mvsmal","id":3872761,"node_id":"MDQ6VXNlcjM4NzI3NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3872761?v=4","gravatar_id":"","url":"https://api.github.com/users/mvsmal","html_url":"https://github.com/mvsmal","followers_url":"https://api.github.com/users/mvsmal/followers","following_url":"https://api.github.com/users/mvsmal/following{/other_user}","gists_url":"https://api.github.com/users/mvsmal/gists{/gist_id}","starred_url":"https://api.github.com/users/mvsmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvsmal/subscriptions","organizations_url":"https://api.github.com/users/mvsmal/orgs","repos_url":"https://api.github.com/users/mvsmal/repos","events_url":"https://api.github.com/users/mvsmal/events{/privacy}","received_events_url":"https://api.github.com/users/mvsmal/received_events","type":"User","site_admin":false},"body":"[WebHost.CreateDefaultBuilder()](https://github.com/aspnet/MetaPackages/blob/f245512f6e68d65309b65528d479f32b34c67718/src/Microsoft.AspNetCore/WebHost.cs#L157-L176) loads application configuration from several places by default:\r\n* `appsettings.json`\r\n* `appsettings.{env}.json`\r\n* Environment variables\r\n* Command line args\r\n\r\nIt aggregates them in `IConfiguration` instance available in the `ServiceCollection`.\r\n\r\nThe idea of this PR is to provide an already loaded configuration to the configuration functions for simplification of environment differences handling.\r\n\r\n- [x] `use_jwt_auth_from_configuration`\r\n- [ ] `use_cookies_auth_from_configuration`\r\n- [ ] `use_custom_oauth_from_configuration`\r\n- [ ] `use_cors_from_configuration`\r\n\r\nWith this PR I would also like to open a discussion about other custom operations which might deserve similar approach, such as `use_config` or `forse_ssl`, but the implementation there would be different.","created_at":"2018-11-07T21:50:24Z","updated_at":"2018-11-07T21:50:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SaturnFramework/Saturn/pulls/150/commits","review_comments_url":"https://api.github.com/repos/SaturnFramework/Saturn/pulls/150/comments","review_comment_url":"https://api.github.com/repos/SaturnFramework/Saturn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SaturnFramework/Saturn/issues/150/comments","statuses_url":"https://api.github.com/repos/SaturnFramework/Saturn/statuses/c5106dc81d03a9e5130d69a063c693a2ecdd8f46","head":{"label":"mvsmal:configuration","ref":"configuration","sha":"c5106dc81d03a9e5130d69a063c693a2ecdd8f46","user":{"login":"mvsmal","id":3872761,"node_id":"MDQ6VXNlcjM4NzI3NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3872761?v=4","gravatar_id":"","url":"https://api.github.com/users/mvsmal","html_url":"https://github.com/mvsmal","followers_url":"https://api.github.com/users/mvsmal/followers","following_url":"https://api.github.com/users/mvsmal/following{/other_user}","gists_url":"https://api.github.com/users/mvsmal/gists{/gist_id}","starred_url":"https://api.github.com/users/mvsmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvsmal/subscriptions","organizations_url":"https://api.github.com/users/mvsmal/orgs","repos_url":"https://api.github.com/users/mvsmal/repos","events_url":"https://api.github.com/users/mvsmal/events{/privacy}","received_events_url":"https://api.github.com/users/mvsmal/received_events","type":"User","site_admin":false},"repo":{"id":155701054,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU3MDEwNTQ=","name":"Saturn","full_name":"mvsmal/Saturn","private":false,"owner":{"login":"mvsmal","id":3872761,"node_id":"MDQ6VXNlcjM4NzI3NjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3872761?v=4","gravatar_id":"","url":"https://api.github.com/users/mvsmal","html_url":"https://github.com/mvsmal","followers_url":"https://api.github.com/users/mvsmal/followers","following_url":"https://api.github.com/users/mvsmal/following{/other_user}","gists_url":"https://api.github.com/users/mvsmal/gists{/gist_id}","starred_url":"https://api.github.com/users/mvsmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvsmal/subscriptions","organizations_url":"https://api.github.com/users/mvsmal/orgs","repos_url":"https://api.github.com/users/mvsmal/repos","events_url":"https://api.github.com/users/mvsmal/events{/privacy}","received_events_url":"https://api.github.com/users/mvsmal/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mvsmal/Saturn","description":"Opinionated, web development framework for F# which implements the server-side, functional MVC pattern","fork":true,"url":"https://api.github.com/repos/mvsmal/Saturn","forks_url":"https://api.github.com/repos/mvsmal/Saturn/forks","keys_url":"https://api.github.com/repos/mvsmal/Saturn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mvsmal/Saturn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mvsmal/Saturn/teams","hooks_url":"https://api.github.com/repos/mvsmal/Saturn/hooks","issue_events_url":"https://api.github.com/repos/mvsmal/Saturn/issues/events{/number}","events_url":"https://api.github.com/repos/mvsmal/Saturn/events","assignees_url":"https://api.github.com/repos/mvsmal/Saturn/assignees{/user}","branches_url":"https://api.github.com/repos/mvsmal/Saturn/branches{/branch}","tags_url":"https://api.github.com/repos/mvsmal/Saturn/tags","blobs_url":"https://api.github.com/repos/mvsmal/Saturn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mvsmal/Saturn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mvsmal/Saturn/git/refs{/sha}","trees_url":"https://api.github.com/repos/mvsmal/Saturn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mvsmal/Saturn/statuses/{sha}","languages_url":"https://api.github.com/repos/mvsmal/Saturn/languages","stargazers_url":"https://api.github.com/repos/mvsmal/Saturn/stargazers","contributors_url":"https://api.github.com/repos/mvsmal/Saturn/contributors","subscribers_url":"https://api.github.com/repos/mvsmal/Saturn/subscribers","subscription_url":"https://api.github.com/repos/mvsmal/Saturn/subscription","commits_url":"https://api.github.com/repos/mvsmal/Saturn/commits{/sha}","git_commits_url":"https://api.github.com/repos/mvsmal/Saturn/git/commits{/sha}","comments_url":"https://api.github.com/repos/mvsmal/Saturn/comments{/number}","issue_comment_url":"https://api.github.com/repos/mvsmal/Saturn/issues/comments{/number}","contents_url":"https://api.github.com/repos/mvsmal/Saturn/contents/{+path}","compare_url":"https://api.github.com/repos/mvsmal/Saturn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mvsmal/Saturn/merges","archive_url":"https://api.github.com/repos/mvsmal/Saturn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mvsmal/Saturn/downloads","issues_url":"https://api.github.com/repos/mvsmal/Saturn/issues{/number}","pulls_url":"https://api.github.com/repos/mvsmal/Saturn/pulls{/number}","milestones_url":"https://api.github.com/repos/mvsmal/Saturn/milestones{/number}","notifications_url":"https://api.github.com/repos/mvsmal/Saturn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mvsmal/Saturn/labels{/name}","releases_url":"https://api.github.com/repos/mvsmal/Saturn/releases{/id}","deployments_url":"https://api.github.com/repos/mvsmal/Saturn/deployments","created_at":"2018-11-01T10:51:23Z","updated_at":"2018-11-01T10:51:25Z","pushed_at":"2018-11-07T21:29:42Z","git_url":"git://github.com/mvsmal/Saturn.git","ssh_url":"git@github.com:mvsmal/Saturn.git","clone_url":"https://github.com/mvsmal/Saturn.git","svn_url":"https://github.com/mvsmal/Saturn","homepage":"https://saturnframework.org","size":407,"stargazers_count":0,"watchers_count":0,"language":"F#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SaturnFramework:master","ref":"master","sha":"8eaf13ef4ae42875618410e867db9b7681458c31","user":{"login":"SaturnFramework","id":35305523,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzA1NTIz","avatar_url":"https://avatars1.githubusercontent.com/u/35305523?v=4","gravatar_id":"","url":"https://api.github.com/users/SaturnFramework","html_url":"https://github.com/SaturnFramework","followers_url":"https://api.github.com/users/SaturnFramework/followers","following_url":"https://api.github.com/users/SaturnFramework/following{/other_user}","gists_url":"https://api.github.com/users/SaturnFramework/gists{/gist_id}","starred_url":"https://api.github.com/users/SaturnFramework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaturnFramework/subscriptions","organizations_url":"https://api.github.com/users/SaturnFramework/orgs","repos_url":"https://api.github.com/users/SaturnFramework/repos","events_url":"https://api.github.com/users/SaturnFramework/events{/privacy}","received_events_url":"https://api.github.com/users/SaturnFramework/received_events","type":"Organization","site_admin":false},"repo":{"id":115228232,"node_id":"MDEwOlJlcG9zaXRvcnkxMTUyMjgyMzI=","name":"Saturn","full_name":"SaturnFramework/Saturn","private":false,"owner":{"login":"SaturnFramework","id":35305523,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzA1NTIz","avatar_url":"https://avatars1.githubusercontent.com/u/35305523?v=4","gravatar_id":"","url":"https://api.github.com/users/SaturnFramework","html_url":"https://github.com/SaturnFramework","followers_url":"https://api.github.com/users/SaturnFramework/followers","following_url":"https://api.github.com/users/SaturnFramework/following{/other_user}","gists_url":"https://api.github.com/users/SaturnFramework/gists{/gist_id}","starred_url":"https://api.github.com/users/SaturnFramework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaturnFramework/subscriptions","organizations_url":"https://api.github.com/users/SaturnFramework/orgs","repos_url":"https://api.github.com/users/SaturnFramework/repos","events_url":"https://api.github.com/users/SaturnFramework/events{/privacy}","received_events_url":"https://api.github.com/users/SaturnFramework/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SaturnFramework/Saturn","description":"Opinionated, web development framework for F# which implements the server-side, functional MVC pattern","fork":false,"url":"https://api.github.com/repos/SaturnFramework/Saturn","forks_url":"https://api.github.com/repos/SaturnFramework/Saturn/forks","keys_url":"https://api.github.com/repos/SaturnFramework/Saturn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SaturnFramework/Saturn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SaturnFramework/Saturn/teams","hooks_url":"https://api.github.com/repos/SaturnFramework/Saturn/hooks","issue_events_url":"https://api.github.com/repos/SaturnFramework/Saturn/issues/events{/number}","events_url":"https://api.github.com/repos/SaturnFramework/Saturn/events","assignees_url":"https://api.github.com/repos/SaturnFramework/Saturn/assignees{/user}","branches_url":"https://api.github.com/repos/SaturnFramework/Saturn/branches{/branch}","tags_url":"https://api.github.com/repos/SaturnFramework/Saturn/tags","blobs_url":"https://api.github.com/repos/SaturnFramework/Saturn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SaturnFramework/Saturn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SaturnFramework/Saturn/git/refs{/sha}","trees_url":"https://api.github.com/repos/SaturnFramework/Saturn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SaturnFramework/Saturn/statuses/{sha}","languages_url":"https://api.github.com/repos/SaturnFramework/Saturn/languages","stargazers_url":"https://api.github.com/repos/SaturnFramework/Saturn/stargazers","contributors_url":"https://api.github.com/repos/SaturnFramework/Saturn/contributors","subscribers_url":"https://api.github.com/repos/SaturnFramework/Saturn/subscribers","subscription_url":"https://api.github.com/repos/SaturnFramework/Saturn/subscription","commits_url":"https://api.github.com/repos/SaturnFramework/Saturn/commits{/sha}","git_commits_url":"https://api.github.com/repos/SaturnFramework/Saturn/git/commits{/sha}","comments_url":"https://api.github.com/repos/SaturnFramework/Saturn/comments{/number}","issue_comment_url":"https://api.github.com/repos/SaturnFramework/Saturn/issues/comments{/number}","contents_url":"https://api.github.com/repos/SaturnFramework/Saturn/contents/{+path}","compare_url":"https://api.github.com/repos/SaturnFramework/Saturn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SaturnFramework/Saturn/merges","archive_url":"https://api.github.com/repos/SaturnFramework/Saturn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SaturnFramework/Saturn/downloads","issues_url":"https://api.github.com/repos/SaturnFramework/Saturn/issues{/number}","pulls_url":"https://api.github.com/repos/SaturnFramework/Saturn/pulls{/number}","milestones_url":"https://api.github.com/repos/SaturnFramework/Saturn/milestones{/number}","notifications_url":"https://api.github.com/repos/SaturnFramework/Saturn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SaturnFramework/Saturn/labels{/name}","releases_url":"https://api.github.com/repos/SaturnFramework/Saturn/releases{/id}","deployments_url":"https://api.github.com/repos/SaturnFramework/Saturn/deployments","created_at":"2017-12-23T23:36:30Z","updated_at":"2018-11-05T18:40:30Z","pushed_at":"2018-11-05T18:40:33Z","git_url":"git://github.com/SaturnFramework/Saturn.git","ssh_url":"git@github.com:SaturnFramework/Saturn.git","clone_url":"https://github.com/SaturnFramework/Saturn.git","svn_url":"https://github.com/SaturnFramework/Saturn","homepage":"https://saturnframework.org","size":408,"stargazers_count":294,"watchers_count":294,"language":"F#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":28,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":42,"open_issues":28,"watchers":294,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SaturnFramework/Saturn/pulls/150"},"html":{"href":"https://github.com/SaturnFramework/Saturn/pull/150"},"issue":{"href":"https://api.github.com/repos/SaturnFramework/Saturn/issues/150"},"comments":{"href":"https://api.github.com/repos/SaturnFramework/Saturn/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/SaturnFramework/Saturn/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/SaturnFramework/Saturn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SaturnFramework/Saturn/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/SaturnFramework/Saturn/statuses/c5106dc81d03a9e5130d69a063c693a2ecdd8f46"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":173,"deletions":1,"changed_files":8}}
{"actor":{"display_login":"mvsmal"}}