{"action":"created","comment":{"url":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/comments/87403694","pull_request_review_id":8014348,"id":87403694,"diff_hunk":"@@ -0,0 +1,30 @@\n+﻿// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.\n+// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.\n+\n+\n+using AutoMapper;\n+using IdentityServer4.EntityFramework.Entities;\n+\n+namespace IdentityServer4.EntityFramework.Mappers\n+{\n+    public static class ScopeMappers\n+    {\n+        static ScopeMappers()\n+        {\n+            Mapper = new MapperConfiguration(cfg => cfg.AddProfile<ScopeMapperProfile>())\n+                .CreateMapper();\n+        }\n+\n+        internal static IMapper Mapper { get; }\n+\n+        public static Models.Scope ToModel(this Scope scope)\n+        {\n+            return scope == null ? null : Mapper.Map<Models.Scope>(scope);\n+        }\n+\n+        public static Scope ToEntity(this Models.Scope scope)\n+        {\n+            return scope == null ? null : Mapper.Map<Scope>(scope);\n+        }","path":"src/external/IdentityServer4.EntityFramework/Mappers/ScopeMappers.cs","position":null,"original_position":28,"commit_id":"2c1d774b48e6603834c88784df65c32ebc5a4056","original_commit_id":"5e4327f864087e1d9c3ace7b9998be7d29755fdd","user":{"login":"RePierre","id":600127,"avatar_url":"https://avatars.githubusercontent.com/u/600127?v=3","gravatar_id":"","url":"https://api.github.com/users/RePierre","html_url":"https://github.com/RePierre","followers_url":"https://api.github.com/users/RePierre/followers","following_url":"https://api.github.com/users/RePierre/following{/other_user}","gists_url":"https://api.github.com/users/RePierre/gists{/gist_id}","starred_url":"https://api.github.com/users/RePierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RePierre/subscriptions","organizations_url":"https://api.github.com/users/RePierre/orgs","repos_url":"https://api.github.com/users/RePierre/repos","events_url":"https://api.github.com/users/RePierre/events{/privacy}","received_events_url":"https://api.github.com/users/RePierre/received_events","type":"User","site_admin":false},"body":"Nu se pot crea doar două metode `public static TModel ToModel<TModel, TEntity>(this TEntity entity)` și `public static TEntity ToEntity<TModel, TEntity>(this TModel model)`? Codul este același ca în `ClientMappers`.","created_at":"2016-11-10T14:28:42Z","updated_at":"2016-11-10T14:38:00Z","html_url":"https://github.com/gov-ithub/auth-sso/pull/39#discussion_r87403694","pull_request_url":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/comments/87403694"},"html":{"href":"https://github.com/gov-ithub/auth-sso/pull/39#discussion_r87403694"},"pull_request":{"href":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/39","id":93147044,"html_url":"https://github.com/gov-ithub/auth-sso/pull/39","diff_url":"https://github.com/gov-ithub/auth-sso/pull/39.diff","patch_url":"https://github.com/gov-ithub/auth-sso/pull/39.patch","issue_url":"https://api.github.com/repos/gov-ithub/auth-sso/issues/39","number":39,"state":"open","locked":false,"title":"Setup env admin","user":{"login":"alexchiraples","id":22675415,"avatar_url":"https://avatars.githubusercontent.com/u/22675415?v=3","gravatar_id":"","url":"https://api.github.com/users/alexchiraples","html_url":"https://github.com/alexchiraples","followers_url":"https://api.github.com/users/alexchiraples/followers","following_url":"https://api.github.com/users/alexchiraples/following{/other_user}","gists_url":"https://api.github.com/users/alexchiraples/gists{/gist_id}","starred_url":"https://api.github.com/users/alexchiraples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexchiraples/subscriptions","organizations_url":"https://api.github.com/users/alexchiraples/orgs","repos_url":"https://api.github.com/users/alexchiraples/repos","events_url":"https://api.github.com/users/alexchiraples/events{/privacy}","received_events_url":"https://api.github.com/users/alexchiraples/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-10T13:07:10Z","updated_at":"2016-11-10T14:38:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b15a000a28d890f1bfd1708d656a2c8947f845bd","assignee":{"login":"RePierre","id":600127,"avatar_url":"https://avatars.githubusercontent.com/u/600127?v=3","gravatar_id":"","url":"https://api.github.com/users/RePierre","html_url":"https://github.com/RePierre","followers_url":"https://api.github.com/users/RePierre/followers","following_url":"https://api.github.com/users/RePierre/following{/other_user}","gists_url":"https://api.github.com/users/RePierre/gists{/gist_id}","starred_url":"https://api.github.com/users/RePierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RePierre/subscriptions","organizations_url":"https://api.github.com/users/RePierre/orgs","repos_url":"https://api.github.com/users/RePierre/repos","events_url":"https://api.github.com/users/RePierre/events{/privacy}","received_events_url":"https://api.github.com/users/RePierre/received_events","type":"User","site_admin":false},"assignees":[{"login":"RePierre","id":600127,"avatar_url":"https://avatars.githubusercontent.com/u/600127?v=3","gravatar_id":"","url":"https://api.github.com/users/RePierre","html_url":"https://github.com/RePierre","followers_url":"https://api.github.com/users/RePierre/followers","following_url":"https://api.github.com/users/RePierre/following{/other_user}","gists_url":"https://api.github.com/users/RePierre/gists{/gist_id}","starred_url":"https://api.github.com/users/RePierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RePierre/subscriptions","organizations_url":"https://api.github.com/users/RePierre/orgs","repos_url":"https://api.github.com/users/RePierre/repos","events_url":"https://api.github.com/users/RePierre/events{/privacy}","received_events_url":"https://api.github.com/users/RePierre/received_events","type":"User","site_admin":false},{"login":"dmihaita","id":5278363,"avatar_url":"https://avatars.githubusercontent.com/u/5278363?v=3","gravatar_id":"","url":"https://api.github.com/users/dmihaita","html_url":"https://github.com/dmihaita","followers_url":"https://api.github.com/users/dmihaita/followers","following_url":"https://api.github.com/users/dmihaita/following{/other_user}","gists_url":"https://api.github.com/users/dmihaita/gists{/gist_id}","starred_url":"https://api.github.com/users/dmihaita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmihaita/subscriptions","organizations_url":"https://api.github.com/users/dmihaita/orgs","repos_url":"https://api.github.com/users/dmihaita/repos","events_url":"https://api.github.com/users/dmihaita/events{/privacy}","received_events_url":"https://api.github.com/users/dmihaita/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/gov-ithub/auth-sso/milestones/1","html_url":"https://github.com/gov-ithub/auth-sso/milestones/R1%20MVP%20Level%200%20access","labels_url":"https://api.github.com/repos/gov-ithub/auth-sso/milestones/1/labels","id":2077729,"number":1,"title":"R1 MVP Level 0 access","description":"Level 0 access: basic login, basic register, fb & google login\r\nAdmin panel \r\nAplicatiile GovIT Hub sunt integrate cu platforma de SSO\r\n","creator":{"login":"alexchiraples","id":22675415,"avatar_url":"https://avatars.githubusercontent.com/u/22675415?v=3","gravatar_id":"","url":"https://api.github.com/users/alexchiraples","html_url":"https://github.com/alexchiraples","followers_url":"https://api.github.com/users/alexchiraples/followers","following_url":"https://api.github.com/users/alexchiraples/following{/other_user}","gists_url":"https://api.github.com/users/alexchiraples/gists{/gist_id}","starred_url":"https://api.github.com/users/alexchiraples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexchiraples/subscriptions","organizations_url":"https://api.github.com/users/alexchiraples/orgs","repos_url":"https://api.github.com/users/alexchiraples/repos","events_url":"https://api.github.com/users/alexchiraples/events{/privacy}","received_events_url":"https://api.github.com/users/alexchiraples/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":13,"state":"open","created_at":"2016-10-18T16:19:53Z","updated_at":"2016-11-10T13:07:10Z","due_on":"2016-12-09T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/39/commits","review_comments_url":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/39/comments","review_comment_url":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gov-ithub/auth-sso/issues/39/comments","statuses_url":"https://api.github.com/repos/gov-ithub/auth-sso/statuses/2c1d774b48e6603834c88784df65c32ebc5a4056","head":{"label":"gov-ithub:setup-env-admin","ref":"setup-env-admin","sha":"2c1d774b48e6603834c88784df65c32ebc5a4056","user":{"login":"gov-ithub","id":22675472,"avatar_url":"https://avatars.githubusercontent.com/u/22675472?v=3","gravatar_id":"","url":"https://api.github.com/users/gov-ithub","html_url":"https://github.com/gov-ithub","followers_url":"https://api.github.com/users/gov-ithub/followers","following_url":"https://api.github.com/users/gov-ithub/following{/other_user}","gists_url":"https://api.github.com/users/gov-ithub/gists{/gist_id}","starred_url":"https://api.github.com/users/gov-ithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gov-ithub/subscriptions","organizations_url":"https://api.github.com/users/gov-ithub/orgs","repos_url":"https://api.github.com/users/gov-ithub/repos","events_url":"https://api.github.com/users/gov-ithub/events{/privacy}","received_events_url":"https://api.github.com/users/gov-ithub/received_events","type":"Organization","site_admin":false},"repo":{"id":71266402,"name":"auth-sso","full_name":"gov-ithub/auth-sso","owner":{"login":"gov-ithub","id":22675472,"avatar_url":"https://avatars.githubusercontent.com/u/22675472?v=3","gravatar_id":"","url":"https://api.github.com/users/gov-ithub","html_url":"https://github.com/gov-ithub","followers_url":"https://api.github.com/users/gov-ithub/followers","following_url":"https://api.github.com/users/gov-ithub/following{/other_user}","gists_url":"https://api.github.com/users/gov-ithub/gists{/gist_id}","starred_url":"https://api.github.com/users/gov-ithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gov-ithub/subscriptions","organizations_url":"https://api.github.com/users/gov-ithub/orgs","repos_url":"https://api.github.com/users/gov-ithub/repos","events_url":"https://api.github.com/users/gov-ithub/events{/privacy}","received_events_url":"https://api.github.com/users/gov-ithub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gov-ithub/auth-sso","description":"Citizen Single Sign On (SSO) ","fork":false,"url":"https://api.github.com/repos/gov-ithub/auth-sso","forks_url":"https://api.github.com/repos/gov-ithub/auth-sso/forks","keys_url":"https://api.github.com/repos/gov-ithub/auth-sso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gov-ithub/auth-sso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gov-ithub/auth-sso/teams","hooks_url":"https://api.github.com/repos/gov-ithub/auth-sso/hooks","issue_events_url":"https://api.github.com/repos/gov-ithub/auth-sso/issues/events{/number}","events_url":"https://api.github.com/repos/gov-ithub/auth-sso/events","assignees_url":"https://api.github.com/repos/gov-ithub/auth-sso/assignees{/user}","branches_url":"https://api.github.com/repos/gov-ithub/auth-sso/branches{/branch}","tags_url":"https://api.github.com/repos/gov-ithub/auth-sso/tags","blobs_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/refs{/sha}","trees_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gov-ithub/auth-sso/statuses/{sha}","languages_url":"https://api.github.com/repos/gov-ithub/auth-sso/languages","stargazers_url":"https://api.github.com/repos/gov-ithub/auth-sso/stargazers","contributors_url":"https://api.github.com/repos/gov-ithub/auth-sso/contributors","subscribers_url":"https://api.github.com/repos/gov-ithub/auth-sso/subscribers","subscription_url":"https://api.github.com/repos/gov-ithub/auth-sso/subscription","commits_url":"https://api.github.com/repos/gov-ithub/auth-sso/commits{/sha}","git_commits_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/commits{/sha}","comments_url":"https://api.github.com/repos/gov-ithub/auth-sso/comments{/number}","issue_comment_url":"https://api.github.com/repos/gov-ithub/auth-sso/issues/comments{/number}","contents_url":"https://api.github.com/repos/gov-ithub/auth-sso/contents/{+path}","compare_url":"https://api.github.com/repos/gov-ithub/auth-sso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gov-ithub/auth-sso/merges","archive_url":"https://api.github.com/repos/gov-ithub/auth-sso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gov-ithub/auth-sso/downloads","issues_url":"https://api.github.com/repos/gov-ithub/auth-sso/issues{/number}","pulls_url":"https://api.github.com/repos/gov-ithub/auth-sso/pulls{/number}","milestones_url":"https://api.github.com/repos/gov-ithub/auth-sso/milestones{/number}","notifications_url":"https://api.github.com/repos/gov-ithub/auth-sso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gov-ithub/auth-sso/labels{/name}","releases_url":"https://api.github.com/repos/gov-ithub/auth-sso/releases{/id}","deployments_url":"https://api.github.com/repos/gov-ithub/auth-sso/deployments","created_at":"2016-10-18T16:05:31Z","updated_at":"2016-11-08T16:47:45Z","pushed_at":"2016-11-10T13:07:10Z","git_url":"git://github.com/gov-ithub/auth-sso.git","ssh_url":"git@github.com:gov-ithub/auth-sso.git","clone_url":"https://github.com/gov-ithub/auth-sso.git","svn_url":"https://github.com/gov-ithub/auth-sso","homepage":"","size":3729,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":13,"forks":3,"open_issues":13,"watchers":5,"default_branch":"master"}},"base":{"label":"gov-ithub:master","ref":"master","sha":"8827b715d50a9c094329a73af611a5b50779c8d5","user":{"login":"gov-ithub","id":22675472,"avatar_url":"https://avatars.githubusercontent.com/u/22675472?v=3","gravatar_id":"","url":"https://api.github.com/users/gov-ithub","html_url":"https://github.com/gov-ithub","followers_url":"https://api.github.com/users/gov-ithub/followers","following_url":"https://api.github.com/users/gov-ithub/following{/other_user}","gists_url":"https://api.github.com/users/gov-ithub/gists{/gist_id}","starred_url":"https://api.github.com/users/gov-ithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gov-ithub/subscriptions","organizations_url":"https://api.github.com/users/gov-ithub/orgs","repos_url":"https://api.github.com/users/gov-ithub/repos","events_url":"https://api.github.com/users/gov-ithub/events{/privacy}","received_events_url":"https://api.github.com/users/gov-ithub/received_events","type":"Organization","site_admin":false},"repo":{"id":71266402,"name":"auth-sso","full_name":"gov-ithub/auth-sso","owner":{"login":"gov-ithub","id":22675472,"avatar_url":"https://avatars.githubusercontent.com/u/22675472?v=3","gravatar_id":"","url":"https://api.github.com/users/gov-ithub","html_url":"https://github.com/gov-ithub","followers_url":"https://api.github.com/users/gov-ithub/followers","following_url":"https://api.github.com/users/gov-ithub/following{/other_user}","gists_url":"https://api.github.com/users/gov-ithub/gists{/gist_id}","starred_url":"https://api.github.com/users/gov-ithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gov-ithub/subscriptions","organizations_url":"https://api.github.com/users/gov-ithub/orgs","repos_url":"https://api.github.com/users/gov-ithub/repos","events_url":"https://api.github.com/users/gov-ithub/events{/privacy}","received_events_url":"https://api.github.com/users/gov-ithub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gov-ithub/auth-sso","description":"Citizen Single Sign On (SSO) ","fork":false,"url":"https://api.github.com/repos/gov-ithub/auth-sso","forks_url":"https://api.github.com/repos/gov-ithub/auth-sso/forks","keys_url":"https://api.github.com/repos/gov-ithub/auth-sso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gov-ithub/auth-sso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gov-ithub/auth-sso/teams","hooks_url":"https://api.github.com/repos/gov-ithub/auth-sso/hooks","issue_events_url":"https://api.github.com/repos/gov-ithub/auth-sso/issues/events{/number}","events_url":"https://api.github.com/repos/gov-ithub/auth-sso/events","assignees_url":"https://api.github.com/repos/gov-ithub/auth-sso/assignees{/user}","branches_url":"https://api.github.com/repos/gov-ithub/auth-sso/branches{/branch}","tags_url":"https://api.github.com/repos/gov-ithub/auth-sso/tags","blobs_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/refs{/sha}","trees_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gov-ithub/auth-sso/statuses/{sha}","languages_url":"https://api.github.com/repos/gov-ithub/auth-sso/languages","stargazers_url":"https://api.github.com/repos/gov-ithub/auth-sso/stargazers","contributors_url":"https://api.github.com/repos/gov-ithub/auth-sso/contributors","subscribers_url":"https://api.github.com/repos/gov-ithub/auth-sso/subscribers","subscription_url":"https://api.github.com/repos/gov-ithub/auth-sso/subscription","commits_url":"https://api.github.com/repos/gov-ithub/auth-sso/commits{/sha}","git_commits_url":"https://api.github.com/repos/gov-ithub/auth-sso/git/commits{/sha}","comments_url":"https://api.github.com/repos/gov-ithub/auth-sso/comments{/number}","issue_comment_url":"https://api.github.com/repos/gov-ithub/auth-sso/issues/comments{/number}","contents_url":"https://api.github.com/repos/gov-ithub/auth-sso/contents/{+path}","compare_url":"https://api.github.com/repos/gov-ithub/auth-sso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gov-ithub/auth-sso/merges","archive_url":"https://api.github.com/repos/gov-ithub/auth-sso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gov-ithub/auth-sso/downloads","issues_url":"https://api.github.com/repos/gov-ithub/auth-sso/issues{/number}","pulls_url":"https://api.github.com/repos/gov-ithub/auth-sso/pulls{/number}","milestones_url":"https://api.github.com/repos/gov-ithub/auth-sso/milestones{/number}","notifications_url":"https://api.github.com/repos/gov-ithub/auth-sso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gov-ithub/auth-sso/labels{/name}","releases_url":"https://api.github.com/repos/gov-ithub/auth-sso/releases{/id}","deployments_url":"https://api.github.com/repos/gov-ithub/auth-sso/deployments","created_at":"2016-10-18T16:05:31Z","updated_at":"2016-11-08T16:47:45Z","pushed_at":"2016-11-10T13:07:10Z","git_url":"git://github.com/gov-ithub/auth-sso.git","ssh_url":"git@github.com:gov-ithub/auth-sso.git","clone_url":"https://github.com/gov-ithub/auth-sso.git","svn_url":"https://github.com/gov-ithub/auth-sso","homepage":"","size":3729,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":13,"forks":3,"open_issues":13,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/39"},"html":{"href":"https://github.com/gov-ithub/auth-sso/pull/39"},"issue":{"href":"https://api.github.com/repos/gov-ithub/auth-sso/issues/39"},"comments":{"href":"https://api.github.com/repos/gov-ithub/auth-sso/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gov-ithub/auth-sso/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/gov-ithub/auth-sso/statuses/2c1d774b48e6603834c88784df65c32ebc5a4056"}}}}
{"actor":{"display_login":"RePierre"}}