{"id":26919173,"url":"https://github.com/wsfe/yapi-plugin-cas","last_synced_at":"2025-04-01T21:30:31.528Z","repository":{"id":57150354,"uuid":"126469435","full_name":"wsfe/yapi-plugin-cas","owner":"wsfe","description":"为yapi设置的基于cas的登录插件","archived":false,"fork":false,"pushed_at":"2019-06-03T07:49:58.000Z","size":5,"stargazers_count":14,"open_issues_count":5,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T08:17:02.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wsfe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-23T10:24:41.000Z","updated_at":"2023-12-01T06:38:57.000Z","dependencies_parsed_at":"2022-09-03T16:50:37.947Z","dependency_job_id":null,"html_url":"https://github.com/wsfe/yapi-plugin-cas","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/wsfe%2Fyapi-plugin-cas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsfe%2Fyapi-plugin-cas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsfe%2Fyapi-plugin-cas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsfe%2Fyapi-plugin-cas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wsfe","download_url":"https://codeload.github.com/wsfe/yapi-plugin-cas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246712875,"owners_count":20821810,"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":"2025-04-01T21:30:31.009Z","updated_at":"2025-04-01T21:30:31.518Z","avatar_url":"https://github.com/wsfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yapi-plugin-cas\n第三方cas登录插件，配置方法如下：\n\n第一步： 在生成的配置文件config.json中加入如下配置：\n\n```\n\"plugins\": [\n  {\n    \"name\": \"cas\",\n    \"options\": {\n      \"type\": \"cas\",\n      \"LOGIN_SERVER\": \"http://cas.example.com/cas/login\",\n      \"AUTH_SERVER\" : \"https://cas.example.com/cas/serviceValidate\",\n      \"emailPostfix\": \"@163.com\",\n    }\n  }\n]\n```\n这里面的配置项含义如下：\n\n- type 登陆类型，目前只支持cas登陆\n- loginUrl 服务端在获取token之后，可以通过这个url来获取用户的详细信息\n- emailPostfix 登陆邮箱后缀\n- AUTH_SERVER 点击登陆按钮式需要跳转的url，用户通过该页面登录以后会向服务器发送一个token\n第二步：在config.json 这层目录下运行 yapi plugin --name yapi-plugin-cas 重新下载插件\n\n第三步： 重启服务器\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsfe%2Fyapi-plugin-cas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwsfe%2Fyapi-plugin-cas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsfe%2Fyapi-plugin-cas/lists"}