Cas java client

72 views
Skip to first unread message

KIRTI KHEDKAR

unread,
Dec 6, 2019, 3:57:20 AM12/6/19
to CAS Community
Please tell me how to deploy Java CAS client

Richard Frovarp

unread,
Dec 6, 2019, 7:44:29 AM12/6/19
to cas-...@apereo.org
That will depend on how you plan to use it. You will need to provide more details. Some of the common ways to use it in Java are the servlet filter, Spring Security, and Apache Shiro.

From: cas-...@apereo.org <cas-...@apereo.org> on behalf of KIRTI KHEDKAR <kvkhe...@gmail.com>
Sent: Friday, December 6, 2019 02:57
To: CAS Community <cas-...@apereo.org>
Subject: [cas-user] Cas java client
 
Please tell me how to deploy Java CAS client

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/59713cb2-1e9f-4f3b-83f8-65f797610bfd%40apereo.org.

KIRTI KHEDKAR

unread,
Dec 6, 2019, 7:52:46 AM12/6/19
to CAS Community
I'm tring to deploy using servlet filtering please guid me

Richard Frovarp

unread,
Dec 6, 2019, 10:25:21 AM12/6/19
to cas-...@apereo.org
From: cas-...@apereo.org <cas-...@apereo.org> on behalf of KIRTI KHEDKAR <kvkhe...@gmail.com>
Sent: Friday, December 6, 2019 6:52:45 AM
To: CAS Community <cas-...@apereo.org>
Subject: [cas-user] Re: Cas java client
 
I'm tring to deploy using servlet filtering please guid me



On Friday, 6 December 2019 14:27:20 UTC+5:30, KIRTI KHEDKAR wrote:
Please tell me how to deploy Java CAS client

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

KIRTI KHEDKAR

unread,
Dec 6, 2019, 11:09:57 PM12/6/19
to CAS Community
I got source code of Java client from github but didn't get web.xml in that. Is it will create after build or we have to create ? and what is correct  location/path of web.xml file


On Friday, 6 December 2019 14:27:20 UTC+5:30, KIRTI KHEDKAR wrote:

Richard Frovarp

unread,
Dec 7, 2019, 3:05:37 PM12/7/19
to cas-...@apereo.org
The web.xml file is part of your web application. You need to modify that and include the required jar files.

From: cas-...@apereo.org <cas-...@apereo.org> on behalf of KIRTI KHEDKAR <kvkhe...@gmail.com>
Sent: Friday, December 6, 2019 10:09:56 PM

To: CAS Community <cas-...@apereo.org>
Subject: [cas-user] Re: Cas java client
I got source code of Java client from github but didn't get web.xml in that. Is it will create after build or we have to create ? and what is correct  location/path of web.xml file

On Friday, 6 December 2019 14:27:20 UTC+5:30, KIRTI KHEDKAR wrote:
Please tell me how to deploy Java CAS client

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

KIRTI KHEDKAR

unread,
Dec 11, 2019, 2:14:33 AM12/11/19
to CAS Community




I tried to build .net CAS client with powershell but get the error as

 error MSB4066: The attribute "Version" in element <PackageReference> is unrecognized.


I included following lines in DotNetCasClient.csproj file

<ItemGroup>

    

<PackageReference Include="SourceLink.Create.GitHub" Version="2.7.4" PrivateAssets="all" />

<DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.7.4" />

<DotNetCliToolReference Include="dotnet-sourcelink" Version="2.8.3" />

  </ItemGroup>


still it shows following error

Capture.JPG


KIRTI KHEDKAR

unread,
Dec 30, 2019, 8:05:15 AM12/30/19
to cas-...@apereo.org
I build the .net cas client but it get following package reference error
Please provide me solution.
Following is powershell output :



PS C:\cas\dotnet-cas-client> .\build.ps1
Preparing to run build script...
Running build script...
Analyzing build script...
Processing build script...
Installing tools...
Installing addins...
Compiling build script...

========================================
Clean
========================================
Executing task: Clean
Cleaning directory C:/cas/dotnet-cas-client/DotNetCasClient/bin/Release
Cleaning directory C:/cas/dotnet-cas-client/artifacts
Finished executing task: Clean

========================================
Version
========================================
Executing task: Version
Is AppVeyor Build: False
Assembly Version: 1.3.0.0
Assembly File Version: 1.3.2.0
Assembly Informational Version: 1.3.2+Branch.master.Sha.2677b8d182af40d490644e08d194ce811f3e3795
Build Number: 0
NuGet Version: 1.3.2-local-00002
VCS Revision: 2677b8d182af40d490644e08d194ce811f3e3795
VCS Branch Name: master
GitVersion Info:
Major: 1
Minor: 3
Patch: 2
PreReleaseTag:
PreReleaseTagWithDash:
PreReleaseLabel:
PreReleaseNumber:
BuildMetaData:
BuildMetaDataPadded:
FullBuildMetaData: Branch.master.Sha.2677b8d182af40d490644e08d194ce811f3e3795
MajorMinorPatch: 1.3.2
SemVer: 1.3.2
LegacySemVer: 1.3.2
LegacySemVerPadded: 1.3.2
AssemblySemVer: 1.3.2.0
AssemblySemFileVer: 1.3.2.0
FullSemVer: 1.3.2
InformationalVersion: 1.3.2+Branch.master.Sha.2677b8d182af40d490644e08d194ce811f3e3795
BranchName: master
Sha: 2677b8d182af40d490644e08d194ce811f3e3795
NuGetVersionV2: 1.3.2
NuGetVersion: 1.3.2
CommitsSinceVersionSource: 2
CommitsSinceVersionSourcePadded: 0002
CommitDate: 2019-04-17

Creating assembly info file: C:/cas/dotnet-cas-client/DotNetCasClient/Properties/AutoGeneratedAssemblyInfo.cs
Finished executing task: Version

========================================
Restore-NuGet-Packages
========================================
Executing task: Restore-NuGet-Packages
MSBuild auto-detection: using msbuild version '16.4.0.56107' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin'.
Nothing to do. None of the projects in this solution specify any packages for NuGet to restore.
Finished executing task: Restore-NuGet-Packages

========================================
Build
========================================
Executing task: Build
Microsoft (R) Build Engine version 4.8.3752.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 30-12-2019 18:22:28.
Project "C:\cas\dotnet-cas-client\DotNetCasClient.sln" on node 1 (Build target(s)).
ValidateSolutionConfiguration:
  Building solution configuration "Release|Any CPU".
Project "C:\cas\dotnet-cas-client\DotNetCasClient.sln" (1) is building "C:\cas\dotnet-cas-client\DotNetCasClient\DotNetCasClient.csproj" (2) on node 1 (default targets).
C:\cas\dotnet-cas-client\DotNetCasClient\DotNetCasClient.csproj(49,63): error MSB4066: The attribute "Version" in element <PackageReference> is unrecognized.
Done Building Project "C:\cas\dotnet-cas-client\DotNetCasClient\DotNetCasClient.csproj" (default targets) -- FAILED.
Done Building Project "C:\cas\dotnet-cas-client\DotNetCasClient.sln" (Build target(s)) -- FAILED.

Build FAILED.

"C:\cas\dotnet-cas-client\DotNetCasClient.sln" (Build target) (1) ->
"C:\cas\dotnet-cas-client\DotNetCasClient\DotNetCasClient.csproj" (default target) (2) ->
  C:\cas\dotnet-cas-client\DotNetCasClient\DotNetCasClient.csproj(49,63): error MSB4066: The attribute "Version" in element <PackageReference> is unrecognized.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.03
An error occurred when executing task 'Build'.
Error: One or more errors occurred.
MSBuild: Process returned an error (exit code 1).
PS C:\cas\dotnet-cas-client> 

Reply all
Reply to author
Forward
0 new messages