[Mono-aspnet-list] Integrating/Authentication ASP .NET application(s) to/with Shibboleth
Hello all, I am new in this mailing list. Can anyone here describe me how to integrate an ASP .NET application to Shibboleth, indeed for the authentication mechanism. I would like to do so, but don't know how to proceed, the steps to follow ... I read Shibboleth documentation, but still I cant understand what are the processes. I would appreciate if anyone here can help me by providing few steps to follow and if possible how; or any links providing such implementations examples. Kind regards Gilles Rubens Badouet Student ID: 3940347 Faculty of Engineering and Computing MSc Network Computing Course Mobile: 07424486426 ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
Re: [Mono-aspnet-list] [Spam] Integrating/Authentication ASP .NET application(s) to/with Shibboleth
Shibboleth is a complicated system, but you can break it down into a few parts. Grossly oversimplifying: * Identity provider (IdP) - this service handles authentication; your users type in their username and password here. * Service Provider (SP) - this service runs on the same server as your ASP.NET application, and talks back and forth with the IdP. You tell the SP what URLs are protected, and the SP intercepts HTTP traffic, redirecting people to the IdP for authentication first if someone requests for a protected URL. When the IdP authenticates the user, it redirects back to your SP with data about the authenticated user (e.g. username). The SP adds this information as custom HTTP headers, then finally sends the request to your ASP.NET application * The ASP.NET application looks in HttpRequest.Headers for information about the logged in user What you do with it from there is up to you. If you're using ASP.NET MVC, it's pretty easy to make an AuthorizeAttribute that looks to the headers; if you're using ASP.NET webforms maybe you have a Begin_Request() in your global.asax.cs that reads the headers and sets HttpContext.User. Most of the work with getting Shibboleth setup is in running the SP daemon and establishing trusted connections with the IdP - there's some metadata and key exchanges that you need to work out with the folks running the IdP, and then they need to explicitly authorize your SP. You should ask on shibboleth mailing lists http://shibboleth.net/community/lists.html for help with that. It's not that difficult, it's just a lot of nitty-gritty details that all have to match perfectly. Good luck, Ryan Davis Director of Programming, Acceleration.net 2837 NW 41st Street, Unit 320 Gainesville, FL 32606 352-335-6500 x124 http://www.acceleration.net On 07/26/2013 08:31 AM, Gilles Badouet wrote: Hello all, I am new in this mailing list. Can anyone here describe me how to integrate an ASP .NET application to Shibboleth, indeed for the authentication mechanism. I would like to do so, but don't know how to proceed, the steps to follow ... I read Shibboleth documentation, but still I cant understand what are the processes. I would appreciate if anyone here can help me by providing few steps to follow and if possible how; or any links providing such implementations examples. Kind regards Gilles Rubens Badouet Student ID: 3940347 Faculty of Engineering and Computing MSc Network Computing Course Mobile: 07424486426 ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
[Mono-dev] error when building libgdiplus
Hi, When running make, there is an error in libgdiplus/tests: libtool: link: gcc -g -O2 -pthread -o .libs/testgdi testgdi.o ../src/.libs/libgdiplus.so -lpthread -lfontconfig -pthread /usr/bin/ld: testgdi.o: undefined reference to symbol 'g_print' /usr/bin/ld: note: 'g_print' is defined in DSO /lib/x86_64-linux-gnu/libglib-2.0.so.0 so try adding it to the linker command line I see the missing library added in a Makefile, but for some reason it is not linked. Fix to this is to add -lglib-2.0 and -lX11 to LIBS variable inside Makefile. I cloned libgdiplus from github yesterday, so the problem is new I guess. No idea how could I fix it in a commit, so I though I should let you guys know about this. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] error when building libgdiplus
On 26/07/13 09:13, Kostas Cibulskas wrote: Hi, When running make, there is an error in libgdiplus/tests: libtool: link: gcc -g -O2 -pthread -o .libs/testgdi testgdi.o ../src/.libs/libgdiplus.so -lpthread -lfontconfig -pthread /usr/bin/ld: testgdi.o: undefined reference to symbol 'g_print' /usr/bin/ld: note: 'g_print' is defined in DSO /lib/x86_64-linux-gnu/libglib-2.0.so.0 so try adding it to the linker command line I see the missing library added in a Makefile, but for some reason it is not linked. Fix to this is to add -lglib-2.0 and -lX11 to LIBS variable inside Makefile. I cloned libgdiplus from github yesterday, so the problem is new I guess. No idea how could I fix it in a commit, so I though I should let you guys know about this. This is fixed already by this pull request: https://github.com/mono/libgdiplus/pull/7 You could +1 in the PR to ping the maintainers ;) ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Debugging mono executables, dlls through attach to process
I haven't tried it, but you may be able to use a System.Diagnostics.Debugger.Break() call in your code. On Wed, Jul 24, 2013 at 6:52 PM, panchdev panch...@hotmail.com wrote: Hi, I need to debug mono executables, dlls through attach to process feature on windows. I have cloned and built monodevelop 4.1.7 attach but atatch to process feature is not available. -- View this message in context: http://mono.1490590.n4.nabble.com/Debugging-mono-executables-dlls-through-attach-to-process-tp4660277.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Aptget
Anyone know if aptgets will be updated with 3.2? -- Le doute n'est pas une condition agréable, mais la certitude est absurde. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Aptget
You need to ask your distro really, else you can use pmono which is currently 3.0 I think, ill update it soon On 26 Jul 2013 16:59, Greg Young gregoryyou...@gmail.com wrote: Anyone know if aptgets will be updated with 3.2? -- Le doute n'est pas une condition agréable, mais la certitude est absurde. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-list] Troubling passing DateTime via embedded API
On 25 Jul 2013, at 18:40, Aaron Oneal aaron.on...@spicypixel.com wrote: Can you share a code snippet? Are you using mono_object_to_string to retrieve the string value for display? Perhaps the code below will help illustrate the point. In C the tick count looks okay by my reckoning but the string representation is bad: Obj-C: // NSLog(@NSDate date = %@ Mono DateTime = %@ ticks = %lld, dateNow, dateString, ticks); says NSDate date = 2013-07-26 09:19:30 + Mono DateTime = 01/01/0001 00:00:01 ticks = 635104271706805504 When I send the Mono DateTime to a C# property incoming argument gets logged as: C#: DateMethod arguments : 01/01/0001 00:00:01 ticks = 12436392 This is on Mono 3.0.10. I will check out 3.2.0 Obj-C: - (void)testDateRepresentation { NSDate *dateNow = [NSDate date]; MonoObject *monoDateTime = [dateNow monoDateTime]; NSDate *dateFromMonoObject = [[NSDate alloc} initWithMonoDateTime:monoDateTime]; // validate the NSDate representation NSAssert(fabs([dateFromMonoObject timeIntervalSinceDate:dateNow]) 0.1, @bad date); // sanity check // validate the Mono representatiom int64_t ticks = DB_UNBOX_INT64(DBMonoObjectGetProperty(monoDateTime, Ticks)); MonoString *monoString = mono_object_to_string(monoDateTime, NULL); NSString *dateString = [NSString stringWithMonoString:monoString]; NSLog(@NSDate date = %@ Mono DateTime = %@ ticks = %lld, dateNow, dateString, ticks); // see output above ^ } // NSDate - (id)initWithMonoDateTime:(MonoObject *)monoDateTime { MonoObject *boxedTicks = DBMonoObjectGetProperty(monoDateTime, Ticks); int64_t ticks = DB_UNBOX_INT64(boxedTicks); NSTimeInterval interval = (NSTimeInterval)(ticks - EPOCH_START_DIFFERENCE) / NET_TICKS_PER_SECOND; self = [self initWithTimeIntervalSinceReferenceDate:interval]; return(self); } // Mono property MonoObject *DBMonoObjectGetProperty(MonoObject *monoObject, const char *propertyName) { MonoObject *monoException = NULL; MonoClass *klass = mono_object_get_class(monoObject); MonoMethod *monoMethod = GetPropertyGetMethod(klass, propertyName); MonoObject *retval = NULL; if(monoMethod != NULL) { void *invokeObj = mono_class_is_valuetype(klass) ? mono_object_unbox(monoObject) : monoObject; retval = mono_runtime_invoke(monoMethod, invokeObj, NULL, monoException); } if(monoException != NULL) @throw(NSExceptionFromMonoException(monoException)); return(retval); } C# // date methods public DateTime DateMethod(DateTime d1) { DateTime now = DateTime.UtcNow; Console.WriteLine (DateMethod arguments : {0} ticks = {1}, d1, d1.Ticks); Console.WriteLine (DateTime Now : {0} ticks = {1}, now, now.Ticks); return d1; } Jonathan ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] XML Serialization - difference between WinCLR and Mono runtime
Atsushi Eno-2 wrote Dave Curylo wrote: a class with non-public property setter. I believe sgen is the default GC in mono 3. GC sgen has nothing to do with XML serializer sgen tool. Parden my ignorance in Mono, is there more than one sgen program in Ubuntu Mono? Thanks. MarL -- View this message in context: http://mono.1490590.n4.nabble.com/XML-Serialization-difference-between-WinCLR-and-Mono-runtime-tp4659562p4660289.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Troubling passing DateTime via embedded API
On 26.07.2013 14:09, jonat...@mugginsoft.com wrote: // validate the Mono representatiom int64_t ticks = DB_UNBOX_INT64(DBMonoObjectGetProperty(monoDateTime, Ticks)); MonoString *monoString = mono_object_to_string(monoDateTime, NULL); mono_object_to_string () is buggy with respect to value types: https://github.com/mono/mono/pull/708 https://github.com/mono/mono/pull/708/files You may want to create your own mono_object_to_string_ex until the patch becomes incorporated and released. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Downloading mono for Windows
Hey. I just heard about mono and was going to try it out but i can't download it for my windows computer. This is what occurs: http://download.mono-project.com/archive/2.10.12/windows-installer/0/mono-2.10.12-gtksharp-2.12.11-win32-0.exe http://download.mono-project.com/archive/2.10.12/windows-installer/0/mono-2.10.12-gtksharp-2.12.11-win32-0.exe It seems that you're downloading a version that does not exist for Windows. The link works for me when chaning the two first 2.10.12 with 2.10.9. Correct link: http://download.mono-project.com/archive/2.10.9/windows-installer/0/mono-2.10.9-gtksharp-2.12.11-win32-0.exe It seems that the last version available depends on the platform used. For example, the last stable version of mono, 3.2.0, is only available as binary for Mac. I don't know whether Xamarin intends to make the binaries available, or if they are looking for help... -- Baltasar (baltas...@gmail.com http://baltasarq.info/) ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Troubling passing DateTime via embedded API
On 26 Jul 2013, at 13:48, Robert Jordan robe...@gmx.net wrote: On 26.07.2013 14:09, jonat...@mugginsoft.com wrote: // validate the Mono representatiom int64_t ticks = DB_UNBOX_INT64(DBMonoObjectGetProperty(monoDateTime, Ticks)); MonoString *monoString = mono_object_to_string(monoDateTime, NULL); mono_object_to_string () is buggy with respect to value types: Thanks Robert Patching mono_object_to_string gives the right string rep. otest[15354:303] NSDate date = 2013-07-26 13:01:05 + Mono DateTime = 26/07/2013 13:01:05 ticks = 635104404656226816 Will try and figure out what is going on with the tick count. The tick count looks okay on the C side as far as I can see. So perhaps the invocation code is at fault here: MonoObject *DBMonoObjectInvoke(MonoObject *monoObject, const char *methodName, int numArgs, va_list va_args) { MonoObject *monoException = NULL; MonoObject *retval = NULL; MonoClass *klass = mono_object_get_class(monoObject); MonoMethod *meth = GetMonoObjectMethod(monoObject, methodName); if(meth != NULL) { void *invokeObj = mono_class_is_valuetype(klass) ? mono_object_unbox(monoObject) : monoObject; void *monoArgs[numArgs]; DBPopulateMethodArgsFromVarArgs(monoArgs, va_args, numArgs); retval = mono_runtime_invoke(meth, invokeObj, monoArgs, monoException); } if(monoException != NULL) @throw(NSExceptionFromMonoException(monoException)); return(retval); } // mono_object_to_string is buggy // https://github.com/mono/mono/pull/708/files MonoString * mono_object_to_string_ex (MonoObject *obj, MonoObject **exc) { static MonoMethod *to_string = NULL; MonoMethod *method; void *target = obj; //g_assert (obj); if (!to_string) to_string = mono_class_get_method_from_name_flags (mono_get_object_class (), ToString, 0, 0x0040 | 0x0006); method = mono_object_get_virtual_method (obj, to_string); // Unbox value type if needed if (mono_class_is_valuetype (mono_method_get_class (method))) { target = mono_object_unbox (obj); } return (MonoString *) mono_runtime_invoke (method, target, NULL, exc); } Jonathan ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] XML Serialization - difference between WinCLR and Mono runtime
On Jul 25, 2013, at 9:20 PM, MarLOne infoseeker...@gmail.com wrote: Parden my ignorance in Mono, is there more than one sgen program in Ubuntu Mono? sgen has two different meanings: 1. SGen is Mono's Simple Generational GC, now the default in Mono 3.2. You can explicitly opt-in to using the SGen GC by using `mono-sgen` or `mono --gc=sgen`. 2. SGEN is .NET's XML Serialization Generator Tool. Mono also has an `sgen` tool to generate XML serialization assemblies. - Jon ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Troubling passing DateTime via embedded API
On 26 Jul 2013, at 14:24, jonat...@mugginsoft.com wrote: Will try and figure out what is going on with the tick count. The tick count looks okay on the C side as far as I can see. So perhaps the invocation code is at fault here: My comprehension was at fault. DateTime is a value type and I wasn't unboxing it prior to invoking the property: - (void)setDate:(NSDate *)value { MonoObject *monoObject = [value monoDateTime]; // [self setProperty:Date valueObject:monoObject]; // BAD [self setProperty:Date valueObject:(MonoObject *)mono_object_unbox(monoObject)]; } Jonathan ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Hiring Startup Developers
We're a startup, developing a .Net/mono based client/server app hopefully worth $millions a year. We're hiring the first round of developers aside from the founders, which means it's quite possibly the best opportunity you'll find to get in at the ground level, and actually retain a significant percentage ownership of the company where you work. If nothing else, it's bound to be exciting! ;-) We're looking for a range of Jr to Sr developers. A Jr developer should have at least some formal exposure to C# / .Net, and other tech experience - as a developer or doing IT. Preference given to cross-platform exposure, windows/mac/linux. A Sr developer should have either at least intermediate C# / .Net experience with significant other professional software development in a managed language, or extensive C# / .Net experience, with preference given to mono and cross-platform exposure. Must be legal to work in the US. If you or someone you know might be a good candidate, please reply to this email directly (not to the mailing list.) ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list