Skip to content

Commit fb503d9

Browse files
Release v2.0.1
1 parent 9f5fb6f commit fb503d9

File tree

5 files changed

+57
-5
lines changed

5 files changed

+57
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<dependency>
1414
<groupId>net.ymate.module</groupId>
1515
<artifactId>ymate-module-sso</artifactId>
16-
<version>2.0.0</version>
16+
<version>2.0.1</version>
1717
</dependency>
1818
```
1919

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>net.ymate.module</groupId>
88
<artifactId>ymate-sso-parent</artifactId>
9-
<version>2.0.1-dev</version>
9+
<version>2.0.1</version>
1010
<packaging>pom</packaging>
1111

1212
<name>ymate-sso-parent</name>
@@ -19,7 +19,7 @@
1919

2020
<properties>
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22-
<ymate.platform.version>2.1.0</ymate.platform.version>
22+
<ymate.platform.version>2.1.1</ymate.platform.version>
2323
<ymate.maven.plugin.version>1.0.0</ymate.maven.plugin.version>
2424
</properties>
2525

ymate-module-sso/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<artifactId>ymate-sso-parent</artifactId>
99
<groupId>net.ymate.module</groupId>
10-
<version>2.0.1-dev</version>
10+
<version>2.0.1</version>
1111
</parent>
1212

1313
<artifactId>ymate-module-sso</artifactId>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* Copyright 2007-2022 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package net.ymate.module.sso;
17+
18+
/**
19+
* @author 刘镇 (suninformation@163.com) on 2022/4/13 02:17
20+
* @since 2.0.1
21+
*/
22+
public abstract class AbstractTokenAttributeAdapter implements ITokenAttributeAdapter {
23+
24+
private ISingleSignOn owner;
25+
26+
private boolean initialized;
27+
28+
@Override
29+
public void initialize(ISingleSignOn owner) throws Exception {
30+
if (!initialized) {
31+
this.owner = owner;
32+
this.initialized = true;
33+
}
34+
}
35+
36+
@Override
37+
public boolean isInitialized() {
38+
return initialized;
39+
}
40+
41+
public ISingleSignOn getOwner() {
42+
return owner;
43+
}
44+
45+
@Override
46+
public void close() throws Exception {
47+
if (initialized) {
48+
initialized = false;
49+
owner = null;
50+
}
51+
}
52+
}

ymate-module-sso/src/main/java/net/ymate/module/sso/SingleSignOn.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public String getName() {
8787
public void initialize(IApplication owner) throws Exception {
8888
if (!initialized) {
8989
//
90-
YMP.showVersion("Initializing ymate-module-sso-${version}", new Version(2, 0, 0, SingleSignOn.class, Version.VersionType.Release));
90+
YMP.showVersion("Initializing ymate-module-sso-${version}", new Version(2, 0, 1, SingleSignOn.class, Version.VersionType.Release));
9191
//
9292
this.owner = owner;
9393
if (config == null) {

0 commit comments

Comments
 (0)